Skip to content

bsnext/DeepCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepCache

Classic cache library, but with allowed dump methods.
Very early-stage and unstable.

Usage:

new DeepCache(options = {})

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)

API:

  • DeepCache.set()
  • DeepCache.get()
  • DeepCache.has()
  • DeepCache.del()
  • DeepCache.values()
  • DeepCache.saveDump()
  • DeepCache.loadDump()
  • DeepCache.clean()
  • DeepCache.on();

Events:

  • set
  • del
  • expired

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published