UNPKG

@iota-big3/sdk-security

Version:

Advanced security features including zero trust, quantum-safe crypto, and ML threat detection

27 lines 678 B
/** * Cache Contract for SDK Security * Defines the interface that sdk-security expects from a cache integration */ export interface SecurityCacheContract { /** * Get a value from cache */ get(key: string): Promise<unknown>; /** * Set a value in cache with optional TTL */ set(key: string, value: unknown, ttl?: number): Promise<void>; /** * Delete keys matching a pattern */ del(pattern: string): Promise<number>; /** * Check if key exists */ has?(key: string): Promise<boolean>; /** * Clear all cache entries */ clear?(): Promise<void>; } //# sourceMappingURL=cache.contract.d.ts.map