mastercache
Version:
Multi-tier cache module for Node.js. Redis, Upstash, CloudfareKV, File, in-memory and others drivers
40 lines (37 loc) • 1.3 kB
text/typescript
import { CacheStack } from './cache-stack.cjs';
import { CacheEntryOptions } from '../cache-entry/cache-entry-options.cjs';
import '../../../events-BJQnbTp3.cjs';
import '../../types/bus.cjs';
import '@boringnode/bus/types/main';
import '../../types/helpers.cjs';
import 'typescript-log';
import '../../bus/bus.cjs';
import '../facades/local-cache.cjs';
import '../cache-entry/cache-entry.cjs';
import '../../../mastercache-CD6UEBYT.cjs';
import '../../types/driver.cjs';
import '../../types/provider.cjs';
import '../../types/options/methods-options.cjs';
import '../../types/options/options.cjs';
import '../../types/options/drivers-options.cjs';
import 'knex';
import 'kysely';
import '@aws-sdk/client-dynamodb';
import 'ioredis';
import 'orchid-orm';
import '../facades/remote-cache.cjs';
import '../../drivers/base-driver.cjs';
import '../../mastercache-options.cjs';
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 };