4.0.2 • Published 1 year ago
@keyv/offline v4.0.2
@keyv/offline
Offline storage adapter for Keyv
Feature is Deprecated
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.
Install
npm install --save keyv @keyv/offlineUsage
import Keyv from 'keyv';
import KeyvOffline from '@keyv/offline';
const keyvOffline = new KeyvOffline(new Keyv());
keyvOffline.on('error', handleConnectionError);