The ICacheFactory contract makes it easy to configure and switch between different ICache dynamically.
ICacheFactory
ICache
IMPORT_PATH: "@daiso-tech/core/cache/contracts"
"@daiso-tech/core/cache/contracts"
The use method will throw an error if you provide it unregisted adapter. If no default adapter is defined an error will be thrown.
use
Optional
UnregisteredAdapterError
DefaultAdapterNotDefinedError
The
ICacheFactory
contract makes it easy to configure and switch between differentICache
dynamically.IMPORT_PATH:
"@daiso-tech/core/cache/contracts"