Skip to content
Alexandr Topilski edited this page Jul 31, 2018 · 15 revisions

All supported databases have base amount of commands:

  • SET - Set the value of a key, example: SET test value
  • GET - Get the value of a key, example: GET test
  • DEL - Delete key, example: DEL test
  • RENAME - Rename a key RENAME test test2
  • DBKCOUNT - Return the number of keys in the selected database DBKCOUNT
  • KEYS - Find all keys matching the given limits KEYS a z 100 (for Redis: KEYS *)
  • SCAN - Incrementally iterate the keys space SCAN 0
  • FLUSHDB - Remove all keys from the current database FLUSHDB
  • INFO - Server information INFO <section or nothing>
  • HELP - Server information HELP <command or nothing>
  • JSONDUMP - Save database into json file JSONDUMP <cursor> PATH <absolute_path> [MATCH pattern] [COUNT count]

Short example:

SET test value => OK
GET test => value
RENAME test test2 => OK
GET test2 => value
SET test3 value3 => OK
GET test3 => value3
DBKCOUNT => 2
KEYS a z 100 => test2\ntest3
SCAN 0 => test2\ntest3
DEL test2 => 1
FLUSHDB => OK

Clone this wiki locally