Best android open-source packages and libraries.

Cache

A key/value store for React Native
Updated 2 weeks ago


Cache store for React Native


Using DiskCache for Android and PINCache for iOS, this library provides a simple interface to store data in a key-value format for offline mode.

Installation

  • Requires iOS 15+ for iOS
  • compileSdkVersion = 34 and Zullu 17 or higher for Android
yarn add @candlefinance/cache
npm i @candlefinance/cache

Usage

await write('key', 'value');

const result = await read('key'); // can be undefined if key doesn't exist

await remove('key');

await clear();

Contributing

Join our Discord and ask questions in the #oss channel.

License

MIT

Tags sqlite cache