lib/picky/backend/redis/string_hash.rb in picky-2.6.0 vs lib/picky/backend/redis/string_hash.rb in picky-2.7.0
- old
+ new
@@ -12,26 +12,26 @@
clear
hash.each_pair do |key, value|
backend.hset namespace, key, value
end
end
-
+
# Clears the hash.
#
def clear
backend.del namespace
end
# Get a collection.
#
- def collection sym
- raise "Can't retrieve a collection from a StringHash. Use Index::Redis::ListHash."
+ def collection key
+ raise "Can't retrieve collection for :#{key} from a StringHash. Use Index::Redis::ListHash."
end
# Get a single value.
#
- def member sym
- backend.hget namespace, sym
+ def member key
+ backend.hget namespace, key
end
end
end
\ No newline at end of file