Redis fixes

This commit is contained in:
Fosco Marotto 2021-01-16 14:46:48 -05:00
parent 2cdce808a3
commit e44e83a857

@ -78,11 +78,9 @@ module GabSocial
desc 'clear', 'Remove all home and list feeds from Redis'
def clear
keys = Redis.current.with do |conn|
conn.keys('feed:*')
end
Redis.current.with do |conn|
keys = conn.keys('feed:*')
conn.pipelined do
keys.each { |key| conn.del(key) }
end