Basic in memory cache store
Meta
- version: 1.0.0
Returns all keys currently found in cache
Returns Array
Returns the number of current key/value pairs in memeory
Returns Number
Places key/value pair into memory for a set time and potential set an action to execute when entry expires
Parameters
-
key
String -
value
Object -
time
(Undefined | Number) Positive Number of milliseconds that the cached object will remain in memeory prior to aging out -
timeoutCallback
(Undefined | Function) Action that will execute when the cached value ages out
Returns Object Value that was cached
Deletes cached value by key
Parameters
-
key
String
Returns Boolean If cached value was found and removed
Removes all cached values from memory
Returns cached value based on key provided
Parameters
-
key
String
Returns Object Cached value
(Static) Intantiates and returns product without the need to "new"
Returns Class Instantiated class