baasic-sdk-react-native
Version:
react-native SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).
15 lines (14 loc) • 603 B
TypeScript
import { IStorageHandler, IDefaultStorageConfig } from 'baasic-sdk-javascript';
import { InMemoryStorageHandler } from 'infrastructure/storage';
declare class NativeStorageHandler implements IStorageHandler, IDefaultStorageConfig {
private inMemoryStorage;
constructor(inMemoryStorage: InMemoryStorageHandler);
clear(): void;
remove(key: string): void;
set(key: string, data: any): void;
get(key: string): any;
getItemsForKeys(keys: string[]): Promise<any>;
getAllAsync(): any;
keyGenerator?: (key: string) => string;
}
export { NativeStorageHandler };