Factory for creating instances of CacheEntry.

Kind: global class

cacheFactory.createCacheEntry(value, [ttl]) ⇒ CacheEntry 

Create a new instance of CacheEntry with value and ttl.

Kind: instance method of CacheFactory
Returns: CacheEntry - The created cache entry.

Param Type Description
value \* The cache entry value.
[ttl] number Cache entry time to live in milliseconds. The entry will expire after the specified amount of milliseconds.