Sha256: b81229ef499f82f13a225f26413e8e0dc16c542df97b85f4114634be9633dc24
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
module Stockman module Logic class Storage def self.obtain_set(key) Logic.redis.smembers(key) end def self.obtain_hash(key) Logic.redis.hgetall(key) end def self.obtain_amount(key, field) value = Logic.redis.hget(key, field) Utils.deserialize_amount(value) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockman-logic-0.1.1 | lib/stockman/logic/storage.rb |
stockman-logic-0.1.0 | lib/stockman/logic/storage.rb |