Home > @imqueue/rpc > ICache
ICache interface
Generic cache adapter interface. Any cache engine implementation must conform to this contract to be usable within IMQ.
Signature:
export interface ICache
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
Adapter (cache) name. {string} | ||
|
boolean |
Whether the cache adapter is initialized and ready to use. {boolean} |
Methods
|
Method |
Description |
|---|---|
|
Removes the value stored in the cache under the given key. | |
|
Returns the value stored in the cache under the given key. | |
|
Initializes the cache adapter with the given adapter-specific options. | |
|
Purges all keys from the cache matching the given wildcard mask. | |
|
Stores the given value in the cache under the given key. |