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
Remarks
Returned update data function receive isForce boolean parameter,
if it true, for this method call function makes real request to backend API
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 APIRemarks
Returned update data function receive
isForce
boolean parameter, if ittrue
, for this method call function makes real request to backend API