Liking cljdoc? Tell your friends :D

krulak

Utility functions and macros.

Utility functions and macros.
raw docstring

base64url-encodeclj

(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
sourceraw docstring

base64url-uuidclj

(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.
sourceraw docstring

deep-mergeclj

(deep-merge & args)
source

defaliascljmacro

(defalias new-name old-name)
source

defaliasescljmacro

(defaliases & syms)
source

json-deleteclj

(json-delete url & [req & r])
source

json-getclj

(json-get url & [req & r])
source

json-postclj

(json-post url & [req & r])
source

json-putclj

(json-put url & [req & r])
source

lru-ttl-cacheclj

(lru-ttl-cache base threshold ttl)
source

lru-ttl-memoclj

(lru-ttl-memo f base threshold ttl)
source

maybe-derefclj

(maybe-deref id)
source

memo-build-helperclj

(memo-build-helper cache-factory f base & args)
source

memo-cache-swap!clj

(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.
sourceraw docstring

memo-evict!clj

(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.
sourceraw docstring

memo-freshclj

(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.
sourceraw docstring

memo-update!clj

(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.
sourceraw docstring

merge-metaclj

(merge-meta x m)
source

rand-bytesclj

(rand-bytes n)
source

rmergeclj

(rmerge & ms)
source

rpartialclj

(rpartial f & args)
source

secret-keyclj

(secret-key & [num-bytes])
source

soft-lru-ttl-cacheclj

source

soft-lru-ttl-memoclj

(soft-lru-ttl-memo f base threshold ttl)
source

take-mapclj

(take-map n m)
source

to-url-slugclj

(to-url-slug & xs)
source

update-alias-metaclj

(update-alias-meta old-name old-meta)
source

url-slug-allowed-charsclj

source

url-slug-replacementsclj

source

uuidclj

(uuid)
source

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

× close