[{"data":1,"prerenderedAt":16},["ShallowReactive",2],{"articles:useCases":3},[4,11],{"path":5,"title":6,"description":7,"answer":8,"dateModified":9,"published":10},"\u002Fuse-cases\u002Fai-agent-memory","Memory and a semantic cache for AI agents on Valkey or Redis","Chat history in JSON, long-term memory with HNSW vector search, a semantic cache and Bloom dedupe on one instance. Node.js code for KVNest, hosted in Germany.","One Valkey or Redis instance can hold an agent's chat history as JSON, its long-term memory as an HNSW vector index, and a semantic cache that skips the LLM call for a question already answered. On KVNest this needs the JSON, Bloom and Search modules, which you turn on per instance.","2026-11-05",true,{"path":12,"title":13,"description":14,"answer":15,"dateModified":9,"published":10},"\u002Fuse-cases\u002Fsessions-and-rate-limiting","Sessions, rate limiting and stampede-safe caching on Valkey or Redis","Keep sessions with a TTL, limit requests with INCR and EXPIRE, and cache without stampedes. Runnable Node.js code for Nuxt and Express on KVNest.","Store each session under its own key with a TTL, rate-limit with INCR plus EXPIRE ... NX per client and window, and fill caches under a SET ... NX PX lock. On KVNest's free Starter plan, set the eviction policy to noeviction first, or the cache policy can silently drop sessions.",1793839178678]