The decrement method decrements the given key with given value.
An error will thrown if the key 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 getOr method will retrieve the given key if found otherwise defaultValue will be returned.
can be regular value, sync or async Invokable value and Task value.
The getOrAdd method will retrieve the given key if found otherwise valueToAdd will be added and returned.
can be regular value, sync or async Invokable value and Task value.
Optionalttl: null | ITimeSpanThe increment method increments the given key with given value.
An error will thrown if the key 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 put method replaces th given key with the given value and ttl if the key exists
othwerwise it will add the given value with the given ttl.
Returns true if the key where replaced otherwise false is returned.
The removeMany method removes many keys.
The param items can be a string or an Iterable of strings.
If the param items are an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
Returns true if one of the keys where deleted otherwise false is returned.
The
ICacheBasecontract defines a way for as key-value pairs independent of data storage.IMPORT_PATH:
"@daiso-tech/core/cache/contracts"