ttl property

int ttl

Retrieve ttl for this particular cache.

Implementation

int get ttl => _ttl;
void ttl=(int value)

Set the default ttl for the cache object. Changing the value only impacts new entries.

Implementation

set ttl(int value) => _ttl = value.abs();