Class: CacheFactory

CacheFactory

Factory for creating instances of CacheEntry.


new CacheFactory()

Methods


createCacheEntry(value [, ttl])

Create new instance of CacheEntry with value a ttl.

Parameters:
Name Type Argument 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