(cache-get this key)(cache-invalidate this key)(cache-put this key value ttl-ms)(invalidate store key)Remove key from store. No-op when store is nil. Never throws.
Remove `key` from `store`. No-op when `store` is nil. Never throws.
(lookup store key)Return the cached value for key from store, or nil if absent, expired,
or if store is nil. Never throws — exceptions are logged and swallowed.
Return the cached value for `key` from `store`, or nil if absent, expired, or if `store` is nil. Never throws — exceptions are logged and swallowed.
(save store key value ttl-ms)Cache value under key in store with ttl-ms time-to-live. No-op
when store is nil. Never throws.
Cache `value` under `key` in `store` with `ttl-ms` time-to-live. No-op when `store` is nil. Never throws.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |