method
new
v2.1.0 -
Show latest stable
- Class:
ActiveSupport::Cache::MemCacheStore
new(*addresses)public
No documentation available.
# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 16
def initialize(*addresses)
addresses = addresses.flatten
options = addresses.extract_options!
addresses = ["localhost"] if addresses.empty?
@addresses = addresses
@data = MemCache.new(addresses, options)
end