Inherits from NSObject
Conforms to RCTBridgeModule
RCTInvalidating
Declared in RCTAsyncLocalStorage.h

Overview

A simple, asynchronous, persistent, key-value storage system designed as a backend to the AsyncStorage JS module, which is modeled after LocalStorage.

Current implementation stores small values in serialized dictionary and larger values in separate files. Since we use a serial file queue RKFileQueue, reading/writing from multiple threads should be perceived as being atomic, unless someone bypasses the RCTAsyncLocalStorage API.

Keys and values must always be strings or an error is returned.

Properties

clearOnInvalidate

@property (nonatomic, assign) BOOL clearOnInvalidate

Class Methods

clearAllData

+ (void)clearAllData

Instance Methods

clear:

- (void)clear:(RCTResponseSenderBlock)callback

getAllKeys:

- (void)getAllKeys:(RCTResponseSenderBlock)callback

multiGet:callback:

- (void)multiGet:(NSArray *)keys callback:(RCTResponseSenderBlock)callback

multiRemove:callback:

- (void)multiRemove:(NSArray *)keys callback:(RCTResponseSenderBlock)callback

multiSet:callback:

- (void)multiSet:(NSArray *)kvPairs callback:(RCTResponseSenderBlock)callback