Local storage utilities. Uses transit to serialize and deserialize values.
Local storage utilities. Uses transit to serialize and deserialize values.
(clear!)
Remove all data from local storage.
Remove all data from local storage.
(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.
(remove! key)
Given a key, removes the local storage key.
Given a key, removes the local storage key.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close