Redis fixes
This commit is contained in:
parent
2cdce808a3
commit
e44e83a857
|
@ -78,11 +78,9 @@ module GabSocial
|
||||||
|
|
||||||
desc 'clear', 'Remove all home and list feeds from Redis'
|
desc 'clear', 'Remove all home and list feeds from Redis'
|
||||||
def clear
|
def clear
|
||||||
keys = Redis.current.with do |conn|
|
|
||||||
conn.keys('feed:*')
|
|
||||||
end
|
|
||||||
|
|
||||||
Redis.current.with do |conn|
|
Redis.current.with do |conn|
|
||||||
|
keys = conn.keys('feed:*')
|
||||||
|
|
||||||
conn.pipelined do
|
conn.pipelined do
|
||||||
keys.each { |key| conn.del(key) }
|
keys.each { |key| conn.del(key) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue