Type:
Class
Constants:
ESCAPE_KEY_CHARS : /[\x00-\x20%\x7F-\xFF]/n

A cache store implementation which stores data in Memcached: memcached.org/

This is currently the most popular cache store for production websites.

Special features:

  • Clustering and load balancing. One can specify multiple memcached servers, and MemCacheStore will load balance between all available servers. If a server goes down, then MemCacheStore will ignore it until it comes back up.

MemCacheStore implements the Strategy::LocalCache strategy which implements an in-memory cache inside of a block.

new
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Cache/ActiveSupport::Cache::MemCacheStore

new(*addresses) Class Public methods Creates a new

2025-01-10 15:47:30
build_mem_cache
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Cache/ActiveSupport::Cache::MemCacheStore

build_mem_cache(*addresses) Class Public methods

2025-01-10 15:47:30
stats
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Cache/ActiveSupport::Cache::MemCacheStore

stats() Instance Public methods Get the statistics from the memcached servers

2025-01-10 15:47:30
clear
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Cache/ActiveSupport::Cache::MemCacheStore

clear(options = nil) Instance Public methods Clear the entire cache on all memcached

2025-01-10 15:47:30
read_multi
  • References/Ruby on Rails/Rails/Classes/ActiveSupport/ActiveSupport::Cache/ActiveSupport::Cache::MemCacheStore

read_multi(*names) Instance Public methods Reads multiple values from the cache

2025-01-10 15:47:30