The IDatabaseCacheAdapter contract defines a way for as key-value pairs independent of data storage. This contract simplifies the implementation of cache adapters with CRUD-based databases, such as SQL databases and ORMs like TypeOrm and MikroOrm.
IDatabaseCacheAdapter
IMPORT_PATH: "@daiso-tech/core/cache/contracts"
"@daiso-tech/core/cache/contracts"
The removeAll method removes all keys from the cache.
removeAll
The removeByKeyPrefix method removes all the keys in the cache that starts with the given prefix.
removeByKeyPrefix
prefix
The
IDatabaseCacheAdaptercontract defines a way for as key-value pairs independent of data storage. This contract simplifies the implementation of cache adapters with CRUD-based databases, such as SQL databases and ORMs like TypeOrm and MikroOrm.IMPORT_PATH:
"@daiso-tech/core/cache/contracts"