Get or add cache
Cache a key-value pair using Orange Logic’s CacheService. Cached values are returned to validate subsequent calls.
GetOrAddCache: function (_sKey, _oOptions, _fGetNewValueCallback, _fValidateCallback, _fCallbackSuccess, _fCallBackFail)
+ _oOptions.ExpireInSeconds:
Request parameter attributes
Attribute | Type | Description | Required |
---|---|---|---|
Key | string | The key-value pair to be cached. | yes |
Options | object | This object uses one property:
| yes |
GetNewValueCallback | function | A function called when a key-value pair is not in the cache or when the value is invalid, as determined by the validate callback. | yes |
ValidateCallback | function | A function called to validate the cached key-value pair. | no |
Updated 13 days ago