UNPKG

crawlee-storage-extensions

Version:

Package for Apify/Crawlee that allows to store encrypted text values into the Storages

11 lines (10 loc) 517 B
import { EncryptedKeyValueStore } from './encrypted-key-value-store.js'; import { CachedKeyValueStore } from './cached-key-value-store.js'; export { CachedKeyValueStore } from './cached-key-value-store.js'; export { EncryptedKeyValueStore } from './encrypted-key-value-store.js'; export function encryptKeyValueStore(keyValueStore, secretKey) { return new EncryptedKeyValueStore(keyValueStore, secretKey); } export function cacheKeyValueStore(keyValueStore) { return new CachedKeyValueStore(keyValueStore); }