// @themost-framework 2.0 Codename Blueshift Copyright (c) 2017-2025, THEMOST LP All rights reserved import {HttpApplicationService} from "./types"; import * as NodeCache from "node-cache"; export declare abstract class CacheStrategy extends HttpApplicationService { abstract add(key: string, value: any, absoluteExpiration?: number): Promise; abstract remove(key: string): Promise; abstract clear(): Promise; abstract get(key: string): Promise; abstract getOrDefault(key: string, fn: Promise, absoluteExpiration?: number): Promise; abstract finalize(): Promise; abstract finalizeAsync(): Promise; } export declare class DefaultCacheStrategy extends CacheStrategy { get rawCache(): NodeCache; add(key: string, value: any, absoluteExpiration?: number): Promise; clear(): Promise; get(key: string): Promise; getOrDefault(key: string, fn: Promise, absoluteExpiration?: number): Promise; remove(key: string): Promise; finalize(): Promise; finalizeAsync(): Promise; }