Liking cljdoc? Tell your friends :D
ClojureScript only.

benefactor.local-storage

Local storage utilities. Uses transit to serialize and deserialize values.

Local storage utilities. Uses transit to serialize and deserialize values.
raw docstring

clear!cljs

(clear!)

Remove all data from local storage.

Remove all data from local storage.
sourceraw docstring

getcljs

(get key)
(get key default)

Given a key, gets the deserialized value in the local storage at the key. Accepts an optional default when value is not found.

Given a key, gets the deserialized value in the local storage at the key.
Accepts an optional default when value is not found.
sourceraw docstring

remove!cljs

(remove! key)

Given a key, removes the local storage key.

Given a key, removes the local storage key.
sourceraw docstring

set!cljs

(set! key val)

Given a key and a value sets the key to the serialized value in the local storage.

Given a key and a value sets the key to the serialized value in the local storage.
sourceraw docstring

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

× close