memcached
Installation
SKILL.md
Memcached
Memcached is a high-performance, distributed memory object caching system. It is simpler than Redis. It does arguably one thing: Key-Value caching of strings/objects in RAM.
When to Use
- High-Throughput In-Memory Key-Value Caching: Caching database query results, HTML fragments, and session tokens with sub-millisecond latency.
- Pure Ephemeral Caching: Storing disposable data where eviction under memory pressure is acceptable (LRU eviction).
- Multi-Threaded Multi-Core Scalability: Maximizing cache operations on large multi-core servers using Memcached's native multi-threaded architecture.
- Simple Key-Value Lookups: Caching simple string and serialized objects where advanced data structures (Redis sets/hashes) are unnecessary.
Quick Start
# Telnet interface
set mykey 0 60 4
data
STORED