class ActiveSupport::Cache::Memcacher
Constants
- CONFIG_PATH
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/active_support/cache/memcacher.rb, line 8 def initialize servers = [] config = memcache_configuration[Rails.env] # TODO: if config is array servers << "#{config["host"]}:#{config["port"]}" super(servers) end
Private Instance Methods
memcache_configuration()
click to toggle source
# File lib/active_support/cache/memcacher.rb, line 18 def memcache_configuration yaml = Pathname.new(CONFIG_PATH) if yaml.exist? YAML.load(yaml.read) else raise "Could not load memcache configuration. No such file - #{CONFIG_PATH}" end end