CacheFactory

cache/CacheFactory~ CacheFactory

Factory for creating instances of CacheEntry.

Constructor

new CacheFactory()

Source:

Methods

createCacheEntry(value, ttlopt, nullable) → {CacheEntry}

Source:
Create new instance of CacheEntry with value a ttl.
Parameters:
Name Type Attributes Description
value * The cache entry value.
ttl number <optional>
<nullable>
Cache entry time to live in milliseconds. The entry will expire after the specified amount of milliseconds.
Returns:
The created cache entry.
Type
CacheEntry