Sha256: 6f7afc5978701cd333b9c0278ce9056563681a5d7f891ce29f34a0f196772a5f
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 Bytes
Contents
module Internals module Index class Redis class StringHash < Basic # Writes the hash into Redis. # def dump hash hash.each_pair do |key, value| @backend.hset namespace, key, value end end # Get a collection. # def collection sym raise "Can't retrieve a collection from a StringHash. Use Index::Redis::ListHash." end # Get a single value. # def member sym @backend.hget namespace, sym end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-1.4.3 | lib/picky/internals/index/redis/string_hash.rb |
picky-1.4.2 | lib/picky/internals/index/redis/string_hash.rb |