Skip to content

Commit 13df2e2

Browse files
Ben Marinidefunkt
authored andcommitted
Redis#keys should strip namespace
1 parent c3a95b2 commit 13df2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def info
230230
# is O(N) for the keyspace, so be careful - this can be slow for big databases.
231231
def keys
232232
redis.keys("*").map do |key|
233-
key.sub('resque:', '')
233+
key.sub("#{redis.namespace}:", '')
234234
end
235235
end
236236
end

0 commit comments

Comments
 (0)