Liking cljdoc? Tell your friends :D

uk.me.rkd.ttlcache


per-item-ttl-cache-factoryclj

(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.
sourceraw docstring

ttl-cache-factoryclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close