sweets-fudge
v0.2.0
Published
Sweets's cache module
Downloads
4
Maintainers
Readme
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