class ActiveSupport::Cache::MemCacheStore

def self.build_mem_cache(*addresses) # :nodoc:

:nodoc:
# => #
ActiveSupport::Cache::MemCacheStore.build_mem_cache('localhost:10290')
# => #
ActiveSupport::Cache::MemCacheStore.build_mem_cache

- "127.0.0.1:11211" (otherwise)
- ENV["MEMCACHE_SERVERS"] (if defined)
If no addresses are provided, we give nil to Dalli::Client, so it uses its fallbacks:
Creates a new Dalli::Client instance with specified addresses and options.
def self.build_mem_cache(*addresses) # :nodoc:
  addresses = addresses.flatten
  options = addresses.extract_options!
  addresses = nil if addresses.compact.empty?
  pool_options = retrieve_pool_options(options)
  if pool_options
    ConnectionPool.new(pool_options) { Dalli::Client.new(addresses, options.merge(threadsafe: false)) }
  else
    Dalli::Client.new(addresses, options)
  end
end