import { ISessionStore } from "./ISessionStore"; import { RedisClientType } from 'redis'; import { RedisClientOptions } from '@redis/client'; import { NextHealthCheckStatus } from "../config/NextOptions"; export interface RedisOptions { host: string; password?: string; port?: number; ttl?: number; } export interface HotCacheOptions { /** In-memory'de idle kalma süresi ms. Default: 600_000 (10dk) */ idleMs?: number; /** Maksimum in-memory key sayısı. Default: 100_000 */ maxKeys?: number; } export declare class RedisSessionStore extends ISessionStore { config: RedisClientOptions; ttl: number; client: RedisClientType; private isAlive; private mem; private readonly memIdleMs; private readonly maxMemoryKeys; constructor(config: RedisClientOptions, ttl?: number, hotCache?: HotCacheOptions); healthCheck(): Promise; private handleError; private memGet; private memSet; private memDelete; private _evictLRU; private _evictIdle; private _startEvictionWorker; /** Kaç session bellekte tutuluyor (monitoring için) */ get memorySize(): number; get(sid: any, cb?: any): void; set(sid: any, sess: any, cb?: any): void; touch(sid: any, sess: any, cb?: any): void; _setTTL(sid: any, ttl: any, cb?: () => void): void; destroy(sid: any, cb?: any): void; } //# sourceMappingURL=RedisSessionStore.d.ts.map