Class: Morlock::DalliGemClient

Inherits:
GemClient show all
Defined in:
lib/morlock/gem_client.rb

Constant Summary

Constants inherited from GemClient

GemClient::GEM_CLIENTS

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



32
33
34
35
36
# File 'lib/morlock/gem_client.rb', line 32

def add(key, expiration)
  @client.add(key, 1, expiration)
rescue => e
  no_server_error e
end

#delete(key) ⇒ Object



38
39
40
41
42
# File 'lib/morlock/gem_client.rb', line 38

def delete(key)
  @client.delete(key)
rescue => e
  true
end