Méthode | Description | |
---|---|---|
__construct ( |
Base constructor. | |
getCallbackResultFromCache ( ) : boolean | mixed | Tries to get the result for the given api request from the cache. | |
getFromCache ( |
Tries to get the result for the given api request from the cache. | |
purgeCacheResult ( ) : boolean | Purges the cached result. | |
purgeResult ( |
Purges the cached result. | |
saveCallbackResult ( mixed $result ) : boolean | Saves the result into cache. | |
saveResult ( |
Saves the result from the given api request into cache. |
Méthode | Description | |
---|---|---|
getCacheKey ( ) : string | Computes the cache key, or gets it from the implemented interface from the api class. |
public __construct ( |
||
$requestBag |
public getCallbackResultFromCache ( ) : boolean | mixed | ||
Résultat | boolean | mixed | False or the actual result from cache. |
public static getFromCache ( |
||
$requestBag | ||
Résultat | boolean | mixed | False or the actual result from cache. |
public purgeCacheResult ( ) : boolean | ||
Résultat | boolean |
public static purgeResult ( |
||
$requestBag | ||
Résultat | boolean |
public saveCallbackResult ( mixed $result ) : boolean | ||
$result | mixed | Result that should be saved. |
Résultat | boolean |
public static saveResult ( |
||
$requestBag | ||
$result | mixed | |
Résultat | boolean |