lib/rediska/driver.rb in rediska-0.0.10 vs lib/rediska/driver.rb in rediska-0.0.11

- old
+ new

@@ -187,9 +187,14 @@ def lastsave Time.now.to_i end + def time + microseconds = (Time.now.to_f * 1000000).to_i + [microseconds / 1000000, microseconds % 1000000] + end + def dbsize data.keys.count end def exists(key)