okta-mcp-server
Version:
Model Context Protocol (MCP) server for Okta API operations with support for bulk operations and caching
34 lines • 925 B
TypeScript
/**
* In-memory cache implementation
*/
import { ICache, CacheOptions } from './interface.js';
import { EventBus } from '../../core/event-bus.js';
export declare class MemoryCache implements ICache {
private cache;
private tagIndex;
private maxSize;
private eventBus?;
constructor(options?: {
maxSize?: number;
eventBus?: EventBus;
});
get<T>(key: string): Promise<T | undefined>;
set<T>(key: string, value: T, options?: CacheOptions): Promise<void>;
delete(key: string): Promise<boolean>;
has(key: string): Promise<boolean>;
clear(): Promise<void>;
clearByTag(tag: string): Promise<void>;
size(): Promise<number>;
/**
* Get all keys (for debugging)
*/
keys(): Promise<string[]>;
/**
* Get cache statistics
*/
getStats(): {
size: number;
tags: number;
};
}
//# sourceMappingURL=memory-cache.d.ts.map