Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com> Co-authored-by: Manoj <manojmj92@gmail.com> Co-authored-by: Nithin <webofnithin@gmail.com>
This commit is contained in:
19
lib/redis/alfred.rb
Normal file
19
lib/redis/alfred.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user