lib/picky/backends/redis/string.rb in picky-4.0.0pre5 vs lib/picky/backends/redis/string.rb in picky-4.0.0pre6
- old
+ new
@@ -10,9 +10,15 @@
#
def clear
client.del namespace
end
+ # Returns the size of the hash.
+ #
+ def size
+ client.hlen namespace
+ end
+
# Deletes the single value.
#
def delete key
client.hdel namespace, key
end
\ No newline at end of file