Liking cljdoc? Tell your friends :D

fogus.clache


CacheProtocolcljprotocol

This is the protocol describing the basic cache capability.

This is the protocol describing the basic cache capability.

-baseclj

(-base cache)

Used to grab the underlying storage struct.

Used to grab the underlying storage struct.

has?clj

(has? cache e)

Checks if the cache contains a value associtaed with e

Checks if the cache contains a value associtaed with `e`

hitclj

(hit cache e)

Is meant to be called if the cache is determined to contain a value associated with e

Is meant to be called if the cache is determined to contain a value
associated with `e`

lookupclj

(lookup cache e)

Retrieve the value associated with e if it exists

Retrieve the value associated with `e` if it exists

missclj

(miss cache e ret)

Is meant to be called if the cache is determined to not contain a value associated with e

Is meant to be called if the cache is determined to **not** contain a
value associated with `e`

seedclj

(seed cache base)

Is used to signal that the cache should be created with a seed. The contract is that said cache should return an instance of its own type.

Is used to signal that the cache should be created with a seed.
The contract is that said cache should return an instance of its
own type.
raw docstring

defcachecljmacro

(defcache cache-name fields & specifics)

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

× close