lib/tabs/storage.rb in tabs-0.5.0 vs lib/tabs/storage.rb in tabs-0.5.2
- old
+ new
@@ -21,9 +21,14 @@
def set(key, value)
redis.set("tabs:#{key}", value)
end
+ def del(*keys)
+ prefixed_keys = keys.map { |k| "tabs:#{k}" }
+ redis.del(*prefixed_keys)
+ end
+
def incr(key)
redis.incr("tabs:#{key}")
end
def rpush(key, value)