UNPKG

mastercache

Version:

Multi-tier cache module for Node.js. Redis, Upstash, CloudfareKV, File, in-memory and others drivers

40 lines (37 loc) 1.28 kB
import { CacheStack } from './cache-stack.js'; import { CacheEntryOptions } from '../cache-entry/cache-entry-options.js'; import '../../../events-CkqPK7En.js'; import '../../types/bus.js'; import '@boringnode/bus/types/main'; import '../../types/helpers.js'; import 'typescript-log'; import '../../bus/bus.js'; import '../facades/local-cache.js'; import '../cache-entry/cache-entry.js'; import '../../../mastercache-Di19srNZ.js'; import '../../types/driver.js'; import '../../types/provider.js'; import '../../types/options/methods-options.js'; import '../../types/options/options.js'; import '../../types/options/drivers-options.js'; import 'knex'; import 'kysely'; import '@aws-sdk/client-dynamodb'; import 'ioredis'; import 'orchid-orm'; import '../facades/remote-cache.js'; import '../../drivers/base-driver.js'; import '../../mastercache-options.js'; declare class CacheStackWriter { protected cacheStack: CacheStack; constructor(cacheStack: CacheStack); /** * Write a value in the cache stack * - Set value in local cache * - Set value in remote cache * - Publish a message to the bus * - Emit a CacheWritten event */ set(key: string, value: any, options: CacheEntryOptions): Promise<boolean>; } export { CacheStackWriter };