Skip to main content

Caching

27
  • ->BasicCache

    Positional factory function for class clojure.core.cache.BasicCache.

  • ->FIFOCache

    Positional factory function for class clojure.core.cache.FIFOCache.

  • ->FnCache

    Positional factory function for class clojure.core.cache.FnCache.

  • ->LIRSCache

    Positional factory function for class clojure.core.cache.LIRSCache.

  • ->LRUCache

    Positional factory function for class clojure.core.cache.LRUCache.

  • ->LUCache

    Positional factory function for class clojure.core.cache.LUCache.

  • ->SoftCache

    Positional factory function for class clojure.core.cache.SoftCache.

  • ->TTLCacheQ

    Positional factory function for class clojure.core.cache.TTLCacheQ.

  • CacheProtocol

    This is the protocol describing the basic cache capability.

  • basic-cache-factory

    Returns a pluggable basic cache initialized to `base`

  • evict

    Removes an entry from the cache

  • fifo-cache-factory

    Returns a FIFO cache with the cache and FIFO queue initialized to `base` -- the queue is filled as the values are pul...

  • has?

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

  • hit

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

  • lirs-cache-factory

    Returns an LIRS cache with the S & R LRU lists set to the indicated limits.

  • lookup

    Retrieve the value associated with `e` if it exists, else `nil` in the 2-arg case. Retrieve the value associated wit...

  • lru-cache-factory

    Returns an LRU cache with the cache and usage-table initialized to `base` -- each entry is initialized with the same ...

  • lu-cache-factory

    Returns an LU cache with the cache and usage-table initialized to `base`. This function takes an optional `:threshol...

  • miss

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

  • seed

    Is used to signal that the cache should be created with a seed. The contract is that said cache should return an inst...

  • soft-cache-factory

    Returns a SoftReference cache. Cached values will be referred to with SoftReferences, allowing the values to be garba...

  • through

    The basic hit/miss logic for the cache system. Expects a wrap function and value function. The wrap function takes t...

  • through-cache

    The basic hit/miss logic for the cache system. Like through but always has the cache argument in the first position f...

  • ttl-cache-factory

    Returns a TTL cache with the cache and expiration-table initialized to `base` -- each with the same time-to-live. ...