Chatwoot/lib/redis/alfred.rb
2019-10-20 14:17:26 +05:30

19 lines
341 B
Ruby

module Redis::Alfred
class << self
def rpoplpush(source, destination)
$alfred.rpoplpush(source, destination)
end
def lpush(key, value)
$alfred.lpush(key, value)
end
def delete(key)
$alfred.del(key)
end
def lrem(key, value, count = 0)
$alfred.lrem(key, count, value)
end
end
end