Liking cljdoc? Tell your friends :D

glittershark.core-async-storage

cljs

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
raw docstring

clearcljs

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

get-itemcljs

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

multi-getcljs

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

multi-removecljs

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

multi-setcljs

(multi-set [key value])

Sets a value' for eachkey' 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
sourceraw docstring

remove-itemcljs

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

set-itemcljs

(set-item key value)

Sets value' forkey' 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
sourceraw docstring

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

× close