Offline storage adapter for Keyv
This feature is deprecated and will be removed in 2025 as it is no longer needed.
offline
and tiered
mode for caching is built into the core Cacheable library which uses Keyv under the hood. Please use the Cacheable
library for offline
and tiered
caching.
npm install --save keyv @keyv/offline
import Keyv from 'keyv';
import KeyvOffline from '@keyv/offline';
const keyvOffline = new KeyvOffline(new Keyv());
keyvOffline.on('error', handleConnectionError);