Liking cljdoc? Tell your friends :D

io.jesi.backpack.cache


create-defaultclj/s

(create-default)
(create-default seed)

Creates a TTL/LRU combination cache with default values and in initial seed (default {})

Creates a TTL/LRU combination cache with default values and in initial seed (default {})
sourceraw docstring

create-lruclj/s

(create-lru)
(create-lru seed)
(create-lru threshold seed)

Creates a Least Recently Used cache with an initial seed (default {}) and maximum value threshold (default 50).

Creates a Least Recently Used cache with an initial seed (default {}) and maximum value threshold (default 50).
sourceraw docstring

create-ttlclj/s

(create-ttl)
(create-ttl seed)
(create-ttl ttl seed)

Creates a Time To Live cache with an initial seed (default {}) and maximum TTL in milliseconds (default 12 hours)

Creates a Time To Live cache with an initial seed (default {}) and maximum TTL in milliseconds (default 12 hours)
sourceraw docstring

SimpleCacheclj/sprotocol

A simple, self contained cache protocol

A simple, self contained cache protocol

evictclj/s

(evict this entry)

Evicts the entry from the cache impl

Evicts the `entry` from the cache `impl`

getclj/s

(get this entry)

Retrieve the value associated with entry if it exists within the cache impl, else nil. May invoke a miss function to create the entry if not found.

Retrieve the value associated with `entry` if it exists within the cache `impl`, else `nil`.
May invoke a `miss` function to create the `entry` if not found.

resetclj/s

(reset this)

Resets the cache back to it's initial value

Resets the cache back to it's initial value

setclj/s

(set this entry value)

Sets the entry to the specific value within the cache impl

Sets the `entry` to the specific `value` within the cache `impl`
sourceraw docstring

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

× close