Memcached is an in-memory caching system that improves database performance by caching query results in RAM. It sits between applications and databases, intercepting reads to see if the requested data already exists in the cache. If so, it returns the cached version up to 165,000x faster than from disk. If not, it queries the database and caches the result. Memcached scales horizontally by adding more servers as load increases, distributing the cache transparently across servers. Many large sites use it to cache database queries, user profiles, and other frequently accessed data.