Very simple in memory cache for browser and node.js. It provides a very basic ttl implementation.
Store value in the cache with name. ttl sholud be any valid moment duration format. Preferred form is:
var ttl = {
seconds: 10,
minutes: 20,
hours: 1
};
Returns the stored cached value. If ttl expires will return null.
Removes related value.
Removes related value and returns the value.
Clear in memory storage.