Cache.this
Creates a new cache with the specified default TTL.
Parameters
defaultTtl | Default time-to-live for cache entries |
maxSize | Maximum number of entries (0 = unlimited) |
Creates a new cache with the specified configuration.
Parameters
cfg | Cache configuration options |