method
build_mem_cache
v3.2.13 -
Show latest stable
- Class:
ActiveSupport::Cache::MemCacheStore
build_mem_cache(*addresses)public
No documentation available.
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 36
def self.build_mem_cache(*addresses)
addresses = addresses.flatten
options = addresses.extract_options!
addresses = ["localhost:11211"] if addresses.empty?
MemCache.new(addresses, options)
end