acts_as_hashish 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -50,6 +50,7 @@ module Hashish
|
|
50
50
|
data = o.to_json
|
51
51
|
prefix = @options[:key_prefix]
|
52
52
|
key = hashish_get_key(o)
|
53
|
+
hashish_delete(key)
|
53
54
|
raise "Error: Computed data key as '#{key}'. Only alphanumeric characters and underscore allowed!" unless key.to_s =~ /^[\w_]+$/
|
54
55
|
Hashish.redis_connection.multi do
|
55
56
|
Hashish.redis_connection.zadd("#{prefix}*", t , "#{prefix}@#{key}")
|