Install the complete package with local command reference and every published mode.
install redisredisUse
redis [options] · redis : <command>redisshow the current
redis -c <host> [user] [database] [-p <port>] [-n] [-m [name]]connect; password is requested separately unless -n is used
-use <database>select another numeric database
-lshow databases reported by
-t [mask]list keys; * and ? are
-s <key>show key type, TTL and memory information
-n <key> [items]preview a key value
-f <mask> [text] [keys]find matching keys, or search text across their names and values
-o <key> [file] [-f]export one key as JSON
-w <key> : <value>set one string value
-d <key>delete one key
-m [name]save the current connection in .lil.key; default name is the
-M <name>remove a saved connection
-k [name]list saved connections or inspect one without showing its password
-K <name>connect using a saved connection
-edisconnect and clear connection data
redis : <command>execute a native
redis dump [file.json] [-f]create a binary-safe logical dump
redis load <file.json>restore a lil
-t lists keys by -f <mask> [text] [keys] uses the same mask and, when text is supplied, searches both key names and compact value previews; the optional final number limits candidate keys scanned.
-w stores one string value and -d removes one key. Use native commands after : for hashes, lists, sets, streams, transactions and other
dump stores
-c accepts host, optional ACL user and database number. The password is requested separately unless -n explicitly selects a passwordless server.
Key scans are capped to keep the browser terminal responsive. Native
Previews are bounded for responsiveness. Single-key export refuses values above 100000 items and dump refuses databases above 100000 keys instead of silently truncating them.
Without -m, connection data remains scoped to the current PHP session. -m [name] explicitly stores the current profile in the protected .lil.key file (0600), -K <name> reconnects from it, -k lists or inspects profiles without exposing a stored password, and -M <name> removes one. kill removes .lil.key together with the other core state. Treat the file as sensitive because an opted-in profile can contain database credentials.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install redisInstall the reduced package. Local reference is omitted;
install redis -mInstall exactly this published version.
install redis -v 1.1.3Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade redisRemove the extension block while leaving the core and unrelated modules intact.
install redis -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
redis -use 0 | redis -t "product:*" | redis -n product:1001Database 0
product:1001
product:1002
product:1003
Key product:1001
Type string
TTL -1
Value City shoeredis -c localhostStatus connected
Server Redis 8
Host localhost:6379
Database 0redis -l0 4 keys
1 0 keysredis -s product:1001Key product:1001
Type string
TTL -1redis -f "product:*" "shoe"product:1001 string City shoe
product:1002 string Trail shoeredis -o product:1001 product-1001.jsonSaved product-1001.jsonredis -w product:1004 : "Travel bag"+redis -d product:1004Deleted 1redis : DBSIZE4redis dump redis.dump.jsonSaved redis.dump.jsonredis load redis.dump.jsonRestored 4redis -e+redis -n missing:keyKey not found: missing:keysandbox/db/redis.txtThe example uses a file or directory from the protected /sandbox/ documentation workspace.
SET product:1001 "City shoe"
SET product:1002 "Trail shoe"
SET product:1003 "Canvas bag"
HSET inventory SHOE-1 18 SHOE-2 7 BAG-1 24
Adds explicit -m/-M/-k/-K profiles in .lil.key; listings never reveal a stored password.