(lirs-cache-factory base & {:keys [s-history-limit q-history-limit], :or {s-history-limit 32, q-history-limit 32}})
Returns an LIRS cache with the S & R LRU lists set to the indicated
limits.
Source
(defn lirs-cache-factory
"Returns an LIRS cache with the S & R LRU lists set to the indicated
limits."
[base & {:keys [s-history-limit q-history-limit]
:or {s-history-limit 32
q-history-limit 32}}]
{:pre [(number? s-history-limit) (< 0 s-history-limit)
(number? q-history-limit) (< 0 q-history-limit)
(map? base)]}
(seed (LIRSCache. {} {} {} 0 s-history-limit q-history-limit) base))