@iota-big3/sdk-security
Version:
Advanced security features including zero trust, quantum-safe crypto, and ML threat detection
30 lines • 793 B
TypeScript
/**
* Cache Adapter for SDK Security
* Adapts various cache implementations to match our SecurityCacheContract
*/
import type { SecurityCacheContract } from '../contracts/cache.contract';
export declare class CacheAdapter implements SecurityCacheContract {
private cache;
constructor(cache: any);
/**
* Get value from cache
*/
get(key: string): Promise<unknown>;
/**
* Set value in cache
*/
set(key: string, value: unknown, ttl?: number): Promise<void>;
/**
* Delete keys by pattern
*/
del(pattern: string): Promise<number>;
/**
* Check if key exists
*/
has(key: string): Promise<boolean>;
/**
* Clear all cache entries
*/
clear(): Promise<void>;
}
//# sourceMappingURL=cache.adapter.d.ts.map