Module: RDKit::DBCommands
- Includes:
- HashCommands, KeyCommands, ListCommands, ServerCommands, SetCommands, StringCommands
- Included in:
- RESPResponder
- Defined in:
- lib/rdkit/db_commands.rb
Defined Under Namespace
Modules: HashCommands, KeyCommands, ListCommands, ServerCommands, SetCommands, StringCommands
Instance Method Summary collapse
Methods included from ServerCommands
Methods included from KeyCommands
Methods included from HashCommands
#hdel, #hexists, #hget, #hkeys, #hlen, #hset, #hstrlen, #hvals
Methods included from SetCommands
#sadd, #scard, #sismember, #smembers, #srem
Methods included from ListCommands
#llen, #lpop, #lpush, #lrange, #rpop
Methods included from StringCommands
#get, #getset, #mget, #mset, #set, #setnx, #strlen
Instance Method Details
#select(index) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/rdkit/db_commands.rb', line 3 def select(index) raise InvalidDBIndexError unless (0..15).map(&:to_s).include?(index) index = index.to_i server.select_db!(index) 'OK' end |