1.0.1 • Published 6 years ago
memcachedo v1.0.1
Table of Contents
MemCacheDo
Basic in memory cache store
Meta
- version: 1.0.0
keys
Returns all keys currently found in cache
Returns Array
size
Returns the number of current key/value pairs in memeory
Returns Number
put
Places key/value pair into memory for a set time and potential set an action to execute when entry expires
Parameters
key
Stringvalue
Objecttime
(Undefined | Number) Positive Number of milliseconds that the cached object will remain in memeory prior to aging outtimeoutCallback
(Undefined | Function) Action that will execute when the cached value ages out
Returns Object Value that was cached
del
Deletes cached value by key
Parameters
key
String
Returns Boolean If cached value was found and removed
clear
Removes all cached values from memory
get
Returns cached value based on key provided
Parameters
key
String
Returns Object Cached value
init
(Static) Intantiates and returns product without the need to "new"
Returns Class Instantiated class