Class: MemcacheCluster::Proxy

Inherits:
Object
  • Object
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

Instance Method Details

#get(*args) ⇒ Object



23
24
25
# File 'lib/droid/heroku/memcache_cluster.rb', line 23

def get(*args)
  MemcacheCluster.cache_internal(@name, @options).get(*args)
end

#set(*args) ⇒ Object



19
20
21
# File 'lib/droid/heroku/memcache_cluster.rb', line 19

def set(*args)
  MemcacheCluster.cache_internal(@name, @options).set(*args)
end