Create cached fetch handler for passed data type
Store using for data types, which change infrequently. For example, app infomation from getMe method. For method calls more often than the passed update period, returned data from cache without real request to backend API
getMe
One of library methods return data type
Transport class instance
Backend API method, data type related
Convert backend API result to inner library method result type function
Updatin data from backend API period
Update data type function
Returned update data function receive isForce boolean parameter, if it true, for this method call function makes real request to backend API
isForce
true
Create cached fetch handler for passed data type
Store using for data types, which change infrequently. For example, app infomation from
getMe
method. For method calls more often than the passed update period, returned data from cache without real request to backend API