Class: Workling::Return::Store::StarlingReturnStore
- Defined in:
- lib/workling/return/store/starling_return_store.rb
Instance Method Summary collapse
-
#get(key) ⇒ Object
get a value from starling queue ‘key’.
-
#initialize ⇒ StarlingReturnStore
constructor
A new instance of StarlingReturnStore.
-
#set(key, value) ⇒ Object
set a value in the queue ‘key’.
Methods inherited from Base
Constructor Details
#initialize ⇒ StarlingReturnStore
Returns a new instance of StarlingReturnStore.
12 13 14 15 |
# File 'lib/workling/return/store/starling_return_store.rb', line 12 def initialize self.client = Workling::Clients::MemcacheQueueClient.new self.client.connect end |
Instance Method Details
#get(key) ⇒ Object
get a value from starling queue ‘key’.
23 24 25 |
# File 'lib/workling/return/store/starling_return_store.rb', line 23 def get(key) self.client.get(key) end |
#set(key, value) ⇒ Object
set a value in the queue ‘key’.
18 19 20 |
# File 'lib/workling/return/store/starling_return_store.rb', line 18 def set(key, value) self.client.set(key, value) end |