UNPKG

@push.rocks/levelcache

Version:

A versatile caching solution offering multi-level storage utilizing memory, disk, and Amazon S3 for efficient data management and backup.

21 lines (20 loc) 589 B
import * as plugins from './levelcache.plugins.js'; export interface ICacheEntryConstructorOptions { key?: string; ttl: number; typeInfo?: string; contents: Buffer; } /** * a CacheEntry */ export declare class CacheEntry extends plugins.smartjson.Smartjson implements ICacheEntryConstructorOptions { static fromStorageJsonString(storageJsonString: string): CacheEntry; key: string; ttl: number; createdAt: number; typeInfo: string; contents: Buffer; toStorageJsonString(): string; constructor(optionsArg: ICacheEntryConstructorOptions); }