On this page:
redis-client-id
redis-client-name
redis-flush-all!
redis-flush-db!
redis-key-count
redis-rewrite-aof!
redis-rewrite-aof/  async!
redis-save!
redis-save/  async!
redis-set-client-name!
redis-time

14 Server Commands

procedure

(redis-client-id client)  exact-integer?

  client : redis?
Returns the current client id.
Commands used by this function: CLIENT_ID

procedure

(redis-client-name client)  (or/c false/c string?)

  client : redis?
Returns the current client name.
Commands used by this function: CLIENT_GETNAME

procedure

(redis-flush-all! client)  #t

  client : redis?
Deletes everything in all the databases.
Commands used by this function: FLUSHALL

procedure

(redis-flush-db! client)  #t

  client : redis?
Deletes everything in the current database.
Commands used by this function: FLUSHDB

procedure

(redis-key-count client)  exact-nonnegative-integer?

  client : redis?
Returns the number of keys in the database.
Commands used by this function: DBSIZE

procedure

(redis-rewrite-aof! client)  #t

  client : redis?
Starts the AOF-rewrite process on the server.
Commands used by this function: REWRITEAOF

procedure

(redis-rewrite-aof/async! client)  #t

  client : redis?
Starts a background AOF-rewrite on the server.
Commands used by this function: BGREWRITEAOF

procedure

(redis-save! client)  #t

  client : redis?
Initiates a save to disk of the database.
Commands used by this function: SAVE

procedure

(redis-save/async! client)  #t

  client : redis?
Starts the background save process on the server.
Commands used by this function: BGSAVE

procedure

(redis-set-client-name! client name)  boolean?

  client : redis?
  name : redis-string/c
Sets the current client name on the server.
Commands used by this function: CLIENT_SETNAME

procedure

(redis-time client)  real?

  client : redis?
The current server time in milliseconds.
Commands used by this function: TIME