{"version":"1.0","type":"rich","title":"Memcached in JavaScript based on Node.JS","description":"This example visualizes the behavior of a Memcached server implemented in Node.js, showing how it manages key-value storage with an LRU (Least Recently Used) eviction strategy under memory pressure. The animation displays the element count in the cache, updating every two seconds via a `setInterval` callback. The code uses Node.js `net` module for TCP networking, a custom LRU class based on chriso/lru, and leverages `process.memoryUsage()` to monitor RSS memory. It also exposes a custom `gc` command to trigger garbage collection via `gc()`.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3306787?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}