The decrement method decrements the given key with given value.
An error will thrown if the value is not a number.
Optionalvalue: Extract<TType, number>If not defined then it will be defaulted to 1.
Returns true if the key where decremented otherwise false will be returned.
The decrementOrFail method decrements the given key with given value.
An error will thrown if the value is not a number or if the key is not found.
Optionalvalue: Extract<TType, number>If not defined then it will be defaulted to 1.
The getOrAdd method retrieves the value for the given key if it exists,
otherwise adds the valueToAdd to the cache and returns it.
The cached value if the key exists, or the newly added value.
The increment method increments the given key with given value.
An error will thrown if the value is not a number.
Optionalvalue: Extract<TType, number>If not defined then it will be defaulted to 1.
Returns true if the key where incremented otherwise false will be returned.
The incrementOrFail method increments the given key with given value.
An error will thrown if the value is not a number or if the key is not found.
Optionalvalue: Extract<TType, number>If not defined then it will be defaulted to 1.
The
ICachecontract defines a way for storing and reading as key-value pairs independent of data storage.IMPORT_PATH:
"@daiso-tech/core/cache/contracts"