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(int v)

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

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
time_t value()

return value encapsulated by this ttl

Meta