(assoc-if-exists m k v)Assocs k with value v to map m only if there is already k associated.
Assocs k with value v to map m only if there is already k associated.
(assoc-if-not-exists m k v)Assocs k to store with value v only if no k was associated before.
Assocs k to store with value v only if no k was associated before.
(bcrypt-check password hashed)Validates password against given hash.
Validates password against given hash.
(bcrypt-hash password)Performs BCrypt hashing of password.
Performs BCrypt hashing of password.
(coll->str coll)Serializes collection of strings into single (space-separated) string.
Serializes collection of strings into single (space-separated) string.
(digest secret)Applies SHA-256 on given secret.
Applies SHA-256 on given secret.
(expired? item)Returns true if given item (more specifically its :expires-at value) is expired or falsey otherwise. Item with no expires-at is non-expirable.
Returns true if given item (more specifically its :expires-at value) is expired or falsey otherwise. Item with no expires-at is non-expirable.
(expires->ttl expires-at)Returns number of seconds between now and expires-at.
Returns number of seconds between now and expires-at.
(generate-secret)Generates a unique secret code.
Generates a unique secret code.
(reset-ttl item ttl)Extends time to live of given item by ttl seconds.
Extends time to live of given item by ttl seconds.
(str->coll coll str)Decomposes string into collection of space-separated substrings. Returns input collection if string was either null or empty.
Decomposes string into collection of space-separated substrings. Returns input collection if string was either null or empty.
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 |