The decrement method decrements the given key with given value.
An error will thrown if the key is not a number.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
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 exists method returns true when key is found otherwise false will be returned.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
The get method returns the value when key is found otherwise null will be returned.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
The getAndRemove method returns the value when key is found otherwise null will be returned.
The key will be removed after it is returned.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
The getOr method will retrieve the given key if found otherwise defaultValue will be returned.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
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 a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
can be regular value, sync or async Invokable value and Task value.
Optionalttl: null | ITimeSpanThe getOrFail method returns the value when key is found otherwise an error will be thrown.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
The increment method increments the given key with given value.
An error will thrown if the key is not a number.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
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 missing method returns true when key is not found otherwise false will be returned.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
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 remove method removes the given key.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
Returns true if the key is found 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 update method updates the given key with given value.
can be a string or an Iterable of strings.
If it's an Iterable, it will be joined into a single string.
Think of an Iterable as representing a path.
Returns true if the key where updated otherwise false will be returned.
The
ICacheBasecontract defines a way for as key-value pairs independent of data storage.IMPORT_PATH:
"@daiso-tech/core/cache/contracts"