class Stockman::Logic::Storage
Public Class Methods
obtain_amount(key, field)
click to toggle source
# File lib/stockman/logic/storage.rb, line 12 def self.obtain_amount(key, field) value = Logic.redis.hget(key, field) Utils.deserialize_amount(value) end
obtain_hash(key)
click to toggle source
# File lib/stockman/logic/storage.rb, line 8 def self.obtain_hash(key) Logic.redis.hgetall(key) end
obtain_set(key)
click to toggle source
# File lib/stockman/logic/storage.rb, line 4 def self.obtain_set(key) Logic.redis.smembers(key) end