Skip to content
petergoldstein edited this page Feb 10, 2026 · 3 revisions

Dalli is a high performance pure Ruby client for accessing memcached servers. It uses the memcached meta protocol and requires memcached 1.6+.

Dalli supports:

  • Simple and complex memcached configurations
  • Failover between memcached instances
  • Fine-grained control of data serialization and compression
  • Thread-safe operation (either through use of a connection pool, or by using the Dalli client in threadsafe mode)
  • SSL/TLS connections to memcached
  • Bulk operations: set_multi, delete_multi, and pipelined get_multi
  • Thundering herd protection via fetch_with_lock
  • Rich metadata retrieval via get_with_metadata
  • OpenTelemetry tracing with zero overhead when not enabled
  • Dynamic namespaces for multi-tenant applications

The name is a variant of Salvador Dali for his famous painting The Persistence of Memory.

Persistence of Memory

Dalli is published as a gem on Rubygems.

Clone this wiki locally