UNPKG

node-consul-service

Version:

A robust Node.js service that integrates with HashiCorp Consul for service discovery and configuration management. This service provides a comprehensive solution for managing distributed systems and microservices architecture, making it easier to handle s

18 lines (17 loc) 429 B
/** * Set a value in memory with optional TTL (ms). */ export declare function set(key: string, value: any, ttl?: number): void; /** * Get a value from memory. * Returns undefined if key does not exist or expired. */ export declare function get<T = any>(key: string): T | undefined; /** * Delete a value. */ export declare function del(key: string): void; /** * Clear all keys. */ export declare function clear(): void;