Simple in-memory cache
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE.md
README.md
package.json

README.md

Sweets

Flexible declarative web framework for real-time projects

Fudge

In-memory cache module with namespaces support.

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 - data expiration in milliseconds

get(key)

returns value for key if it exists in cache and is not expired, otherwise returns false

del(key)

deletes value for key

clear()

cleares cache