CacheIt<K, V> constructor

CacheIt<K, V>({
  1. int ttl = 3600,
})

Creates a new CacheIt object. The constructor takes an optional ttl paramter to set time-to-live for entries in seconds. The default is 3600 seconds or one hour.

Implementation

CacheIt({int ttl = 3600}) : _ttl = ttl.abs();