sweets-fudge

0.2.0 • Public • Published

Sweets

Next Web builder toolkit

Fudge

In-memory cache Sweets framework module with namespace support and no dependencies required.

FudgeFactory

Factory which provides cache instance for defined namespace.

getCache(ns)

cache instance provider, ns - namespace, returns Fudge class

Fudge

Cache itself

put(key, data, live)

puts key in cache

  • key - key
  • data - value
  • live - timestamp of stored data expiration

get(key)

returns value for specified key if it exists in cache and didn't expire, otherwise returns false

del(key)

deletes value for specified key

clear()

cleares cache

Package Sidebar

Install

npm i sweets-fudge

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • velocityzen