Chatwoot/lib/redis/alfred.rb
Pranav Raj Sreepuram 2a34255e0b Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com>
Co-authored-by: Manoj <manojmj92@gmail.com>
Co-authored-by: Nithin <webofnithin@gmail.com>
2019-08-14 15:18:44 +05:30

19 lines
333 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