Classic cache library, but with allowed dump methods.
Very early-stage and unstable.
new DeepCache(options = {})
-
ttl - Default keys time-to-live in seconds (Default: 60)
-
ttc - Default time for collect expired keys in seconds (Default: 60)
-
separator - Separator for split keys to levels
Example: "users:id", for use DeepCache.values("users:*")
-
separator - Separator for split keys to levels
-
cloning - Use "structoredClone" for cache records (Default: false)
-
events - Enable emitting events (Default: false)
- DeepCache.set()
- DeepCache.get()
- DeepCache.has()
- DeepCache.del()
- DeepCache.values()
- DeepCache.saveDump()
- DeepCache.loadDump()
- DeepCache.clean()
- DeepCache.on();
- set
- del
- expired