Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 3be030a826
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (25 sloc) 0.621 kB
begin
require 'memcache'
rescue LoadError
end
begin
require 'memcached'
rescue LoadError
end
begin
require 'mem_cache_with_consistent_hashing'
rescue LoadError
end
require 'acts_as_cached'
Object.send :include, ActsAsCached::Mixin
unless File.exists? config_file = File.join(RAILS_ROOT, 'config', 'memcached.yml')
error = "No config file found. Make sure you used `script/plugin install' and have memcached.yml in your config directory."
puts error
logger.error error
exit!
end
ActsAsCached.config = YAML.load(ERB.new(IO.read(config_file)).result)
begin
require 'extensions'
rescue LoadError
end
Jump to Line
Something went wrong with that request. Please try again.