Class: MemcacheCluster::Proxy
- Inherits:
-
Object
- Object
- MemcacheCluster::Proxy
show all
- Defined in:
- lib/droid/heroku/memcache_cluster.rb
Instance Method Summary
collapse
Constructor Details
#initialize(name, options = {}) ⇒ Proxy
Returns a new instance of Proxy.
14
15
16
17
|
# File 'lib/droid/heroku/memcache_cluster.rb', line 14
def initialize(name, options={})
@name = name
@options = options
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
27
28
29
|
# File 'lib/droid/heroku/memcache_cluster.rb', line 27
def method_missing(method_name, *args)
MemcacheCluster.cache_internal(@name, @options).send(method_name, *args)
end
|