Class: Workling::Return::Store::StarlingReturnStore

Inherits:
Base
  • Object
show all
Defined in:
lib/workling/return/store/starling_return_store.rb

Instance Method Summary collapse

Methods inherited from Base

#iterator

Constructor Details

#initializeStarlingReturnStore

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