Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

@redis.srem doesn't support splatted arrays yet
  • Loading branch information...
commit 1dc14172fb09baecf6390f8fb184ac8dfe36f696 1 parent bc7a2bd
ckrailo authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.