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.
- Requires
iOS 15+
for iOS -
compileSdkVersion = 34
andZullu 17
or higher for Android
yarn add @candlefinance/cache
npm i @candlefinance/cache
await write('key', 'value');
const result = await read('key'); // can be undefined if key doesn't exist
await remove('key');
await clear();
Join our Discord and ask questions in the #oss channel.
MIT