mastercache
Version:
Multi-tier cache module for Node.js. Redis, Upstash, CloudfareKV, File, in-memory and others drivers
41 lines (38 loc) • 1.65 kB
TypeScript
import { MutexInterface } from 'async-mutex';
import { Locks } from './locks.js';
import { CacheStack } from './stack/cache-stack.js';
import { GetSetFactory } from '../types/helpers.js';
import { CacheStackWriter } from './stack/cache-stack-writer.js';
import { CacheEntryOptions } from './cache-entry/cache-entry-options.js';
import '../../events-CkqPK7En.js';
import '../types/bus.js';
import '@boringnode/bus/types/main';
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 'typescript-log';
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';
/**
* Factory Runner is responsible for executing factories
*/
declare class FactoryRunner {
#private;
constructor(stack: CacheStack, stackWriter: CacheStackWriter, locks: Locks);
saveBackgroundFactoryResult(key: string, factoryResult: unknown, options: CacheEntryOptions, lockReleaser: MutexInterface.Releaser): Promise<void>;
writeFactoryResult(key: string, item: unknown, options: CacheEntryOptions, lockReleaser: MutexInterface.Releaser): Promise<void>;
run(key: string, factory: GetSetFactory, hasFallback: boolean, options: CacheEntryOptions, lockReleaser: MutexInterface.Releaser): Promise<any>;
}
export { FactoryRunner };