Clojurescript wrapper around react-native's AsyncStorage using core.async
In general, all functions in this namespace are kebab-case versions of AsyncStorage's camelCase functions, that return a `core.async' channel rather than taking a callback
All keys and values passed to functions in this namespace will also be serialized to and from EDN before being stored
Clojurescript wrapper around react-native's AsyncStorage using core.async In general, all functions in this namespace are kebab-case versions of AsyncStorage's camelCase functions, that return a `core.async' channel rather than taking a callback All keys and values passed to functions in this namespace will also be serialized to and from EDN before being stored
(clear key value)
Erases all AsyncStorage for all clients, libraries, etc. You probably don't want to call this - use removeItem or multiRemove to clear only your own keys instead. Returns [error] in a core.async channel, or [] if no error
Erases *all* AsyncStorage for all clients, libraries, etc. You probably don't want to call this - use removeItem or multiRemove to clear only your own keys instead. Returns [error] in a core.async channel, or [] if no error
(get-item key)
Fetches `key' and returns [error result] in a core.async channel, or [nil result] if no error
Fetches `key' and returns [error result] in a core.async channel, or [nil result] if no error
(multi-get keys)
Fetches all keys
and returns [errors? results] in a core.async
channel, where results
is a map from requested keys to their values
in storage
Fetches all `keys` and returns [errors? results] in a core.async channel, where `results` is a map from requested keys to their values in storage
(multi-remove keys)
Removes each `key' in a collection from the storage and returns [error] in a core.async channel, or [] if no error
Removes each `key' in a collection from the storage and returns [error] in a core.async channel, or [] if no error
(multi-set [key value])
Sets a value' for each
key' in a collection and returns [error] in
a core.async channel upon completion, or [] if no error
Sets a `value' for each `key' in a collection and returns [error] in a core.async channel upon completion, or [] if no error
(remove-item key value)
Removes `key' from the storage and returns [error] in a core.async channel, or [] if no error
Removes `key' from the storage and returns [error] in a core.async channel, or [] if no error
(set-item key value)
Sets value' for
key' and returns [error] in a core.async channel
upon completion, or [] if no error
Sets `value' for `key' and returns [error] in a core.async channel upon completion, or [] if no error
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close