(per-item-ttl-cache-factory base & {get-ttl :ttl-getter})
Returns a TTL cache with the cache and expiration-table initialied to base
--
each with the same time-to-live.
This function also allows an optional :ttl
argument that defines the default
time in milliseconds that entries are allowed to reside in the cache.
Returns a TTL cache with the cache and expiration-table initialied to `base` -- each with the same time-to-live. This function also allows an optional `:ttl` argument that defines the default time in milliseconds that entries are allowed to reside in the cache.
(ttl-cache-factory base & {ttl :ttl :or {ttl 2000}})
Returns a TTL cache with the cache and expiration-table initialied to base
--
each with the same time-to-live.
This function also allows an optional :ttl
argument that defines the default
time in milliseconds that entries are allowed to reside in the cache.
Returns a TTL cache with the cache and expiration-table initialied to `base` -- each with the same time-to-live. This function also allows an optional `:ttl` argument that defines the default time in milliseconds that entries are allowed to reside in the cache.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close