crawlee-storage-extensions
Version:
Package for Apify/Crawlee that allows to store encrypted text values into the Storages
9 lines (8 loc) • 363 B
TypeScript
import { KeyValueStoreLike } from './types.js';
export declare class EncryptedKeyValueStore implements KeyValueStoreLike {
#private;
private kvstore;
constructor(kvstore: KeyValueStoreLike, secretKey: string);
getValue<T = unknown>(key: string, defaultValue?: T): Promise<T | null>;
setValue<T>(key: string, value: T | null): Promise<void>;
}