Module: RDKit::DBCommands::ListCommands

Included in:
RDKit::DBCommands
Defined in:
lib/rdkit/db_commands.rb

Instance Method Summary collapse

Instance Method Details

#llen(key) ⇒ Object



62
63
64
# File 'lib/rdkit/db_commands.rb', line 62

def llen(key)
  db.llen(key)
end

#lpop(key) ⇒ Object



70
71
72
# File 'lib/rdkit/db_commands.rb', line 70

def lpop(key)
  db.lpop(key)
end

#lpush(key, value, *more_values) ⇒ Object



58
59
60
# File 'lib/rdkit/db_commands.rb', line 58

def lpush(key, value, *more_values)
  db.lpush(key, [value] + more_values)
end

#lrange(key, start, stop) ⇒ Object



66
67
68
# File 'lib/rdkit/db_commands.rb', line 66

def lrange(key, start, stop)
  db.lrange(key, start, stop)
end

#rpop(key) ⇒ Object



74
75
76
# File 'lib/rdkit/db_commands.rb', line 74

def rpop(key)
  db.rpop(key)
end