cli_redis module

redis

Performs operations on Redis.

redis [OPTIONS] COMMAND [ARGS]...

count

Counts the number of keys matching a given pattern present in Redis

redis count [OPTIONS]

Options

-p, --pattern <pattern>

Pattern of the keys. By default, selects all the keys.

--session, --no-session

Display the amount of user sessions.

--code, --no-code

Display the amount of unique codes.

expire

Apply an expiry time to keys in Redis.

redis expire [OPTIONS]

Options

-p, --pattern <pattern>

Pattern of the keys. By default, selects all the keys.

-t, --time <time>

Apply an expiry time. If no expiry is specified, simply deletes the keys.

-r, --random <random>

Apply a random expiry time, between provided lower and upper bounds.

flush

Resets Redis, deleting all keys.

redis flush [OPTIONS]

update

Updates Redis’ tables.

redis update [OPTIONS]