Permalink
Browse files

redis cache bug; loop through key matches to delete them since

@redis.srem doesn't support splatted arrays yet
  • Loading branch information...
1 parent bc7a2bd commit 1dc14172fb09baecf6390f8fb184ac8dfe36f696 ckrailo committed Jan 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/harbor/cache/redis.rb
View
3 lib/harbor/cache/redis.rb
@@ -54,6 +54,9 @@ def delete_matching(key_regex)
if (matches = keys_matching(key_regex)).empty?
nil
else
+ matches.each do |match|
+ @redis.srem(TRACKER_KEY_NAME, match)
+ end
@redis.srem(TRACKER_KEY_NAME, *matches)
@redis.del(*matches)
end

0 comments on commit 1dc1417

Please sign in to comment.