Class: Ramaze::Cache::MemCache
- Inherits:
-
Object
- Object
- Ramaze::Cache::MemCache
- Defined in:
- lib/cortex_reaver/snippets/ramaze/cache/memcached.rb
Instance Method Summary collapse
-
#cache_setup(host, user, app, name) ⇒ Object
I can’t figure out a good way to specify the parameters Ramaze::Cache uses when instantiating new caches, so I’m just going to override the setup here.
Instance Method Details
#cache_setup(host, user, app, name) ⇒ Object
I can’t figure out a good way to specify the parameters Ramaze::Cache uses when instantiating new caches, so I’m just going to override the setup here. Innate hardcodes the app name as “pristine”. :(
7 8 9 10 11 12 13 14 |
# File 'lib/cortex_reaver/snippets/ramaze/cache/memcached.rb', line 7 def cache_setup(host, user, app, name) app = Ramaze..app.name @namespace = [host, user, app, name].compact.join('-') = {:namespace => @namespace}.merge(OPTIONS) servers = .delete(:servers) @store = ::MemCache.new(servers, ) @warned = false end |