Files
NapCatQQ/.pnpm-store/v3/files/03/d9ff2ed46c13b980d56a038f360f1aaa087ea06f811c9ecc75e1b73e0c51c407af530eafd4a8533eca9588ef9f72cc76b4c5ad0caa9628546be0f01a3b81e5
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

26 lines
1.2 KiB
Plaintext

import { CacheBindingInvalidation } from '../models/CacheBindingInvalidation';
import { GetPlanOptions } from '../models/GetPlanOptions';
import { NonCachedServiceNodeContext } from '../models/NonCachedServiceNodeContext';
import { PlanResult } from '../models/PlanResult';
import { PlanServiceNode } from '../models/PlanServiceNode';
/**
* Service to cache plans.
*
* This class is used to cache plans and to notify PlanService subscribers when the cache is cleared.
* The cache should be cleared when a new binding is registered or when a binding is unregistered.
*
* Subscribers are supposed to be plan services from child containers.
*
* Ancestor binding constraints are the reason to avoid reusing plans from plan children nodes.
*/
export declare class PlanResultCacheService {
#private;
constructor();
clearCache(): void;
get(options: GetPlanOptions): PlanResult | undefined;
invalidateServiceBinding(invalidation: CacheBindingInvalidation): void;
set(options: GetPlanOptions, planResult: PlanResult): void;
setNonCachedServiceNode(node: PlanServiceNode, context: NonCachedServiceNodeContext): void;
subscribe(subscriber: PlanResultCacheService): void;
}
//# sourceMappingURL=PlanResultCacheService.d.ts.map