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

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

Instance Method Summary collapse

Constructor Details

#initializeStarlingReturnStore

Returns a new instance of StarlingReturnStore.



14
15
16
17
# File 'lib/workling/return/store/starling_return_store.rb', line 14

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’.



25
26
27
# File 'lib/workling/return/store/starling_return_store.rb', line 25

def get(key)
  self.class.client.get(key)
end

#set(key, value) ⇒ Object

set a value in the queue ‘key’.



20
21
22
# File 'lib/workling/return/store/starling_return_store.rb', line 20

def set(key, value)
  self.class.client.set(key, value)
end