TTL

TTL encapsulate ttl for single cache item 1. use default - __ttl = 0 2. no ttl - __ttl = -1 3. some value - __ttl > 0

Constructors

this
this(Duration v)

/ Constructor / Parameters: / v - ttl value (0 - use default value or no ttl if there is no defaults)

this
deprecated this(int v)
Undocumented in source.

Members

Functions

opUnary
TTL opUnary()

Create "no ttl" - means do not use ttl with this entry

useDefault
bool useDefault()

True if this TTL means - use default value for this cache

value
Duration value()

return value encapsulated by this ttl

Meta