A simple cache manager.
The type of the cached objects.
Construct a new CacheManager instance.
The namespace to use for this cache.
Optional
The TTL (Time-To-Live) for objects in cache.
7200000 // 2 hours Copy
7200000 // 2 hours
Clears the CacheManager.store.
Gets the value of the given key from the cache.
The key to get.
Checks if the cache has a value for the given key.
The key to check.
Sets a key to a value in the cache.
The key to set.
The value to set.
Sets the CacheManager.ttl.
If provided, sets the CacheManager.ttl to this value, otherwise uses the default value.
A simple cache manager.