Utility functions and macros.
Utility functions and macros.
(base64url-encode byte-arr)
Return a base64url encoded string as defined by RFC 4648 §5 at https://tools.ietf.org/html/rfc4648#section-5
Return a base64url encoded string as defined by RFC 4648 §5 at https://tools.ietf.org/html/rfc4648#section-5
(base64url-uuid)
(base64url-uuid length)
Return a random URL-safe base64 UUID. The default length is 21 characters, which represent 126 bits, 2 less bits than a normal UUID.
Return a random URL-safe base64 UUID. The default length is 21 characters, which represent 126 bits, 2 less bits than a normal UUID.
(memo-cache-swap! f new-cache)
Replaces the entire cache of a function backed by clojure.core.memoize, where clojure.core.memoize/cache-swap! only replaces the data inside the cache. Used when you want to adjust parameters of the cache (like size) on the fly.
Replaces the entire cache of a function backed by clojure.core.memoize, where clojure.core.memoize/cache-swap! only replaces the data inside the cache. Used when you want to adjust parameters of the cache (like size) on the fly.
(memo-evict! f & args)
Evicts a set of arguments from the cache of a function backed by clojure.core.memoize. Returns the function.
Evicts a set of arguments from the cache of a function backed by clojure.core.memoize. Returns the function.
(memo-fresh f & args)
Takes a function backed by clojure.core.memoize and args, gets a fresh result, then swaps the new result into the cache.
Takes a function backed by clojure.core.memoize and args, gets a fresh result, then swaps the new result into the cache.
(memo-update! f args v)
Update the cached return value for a seq of args for a function backed by clojure.core.memoize.
Update the cached return value for a seq of args for a function backed by clojure.core.memoize.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close