Class: Morlock::MemcacheGemClient
- Defined in:
- lib/morlock/gem_client.rb
Constant Summary
Constants inherited from GemClient
Instance Method Summary collapse
Methods inherited from GemClient
#initialize, #no_server_error, wrap
Constructor Details
This class inherits a constructor from Morlock::GemClient
Instance Method Details
#add(key, expiration) ⇒ Object
47 48 49 50 51 |
# File 'lib/morlock/gem_client.rb', line 47 def add(key, expiration) @client.add(key, 1, expiration, true) !~ /NOT_STORED/ rescue MemCache::MemCacheError => e no_server_error e end |
#delete(key) ⇒ Object
53 54 55 56 57 |
# File 'lib/morlock/gem_client.rb', line 53 def delete(key) @client.delete(key) rescue MemCache::MemCacheError => e true end |