You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| SET | SET <key> <value> | redis-cli SET name omkar| Set the string value of a key |
58
-
| GET | GET <key>| redis-cli GET name | Get the value of a key |
59
-
| DEL | DEL key [key ...]| redis-cli DEL name<br/>redis-cli DEL name age | Delete one or more keys |
60
-
| INCR | INCR key | redis-cli INCR age | Increment the integer value of a key |
61
-
| DECR | DECR key | redis-cli DECR age | Decrement the integer value of a key |
62
-
| EXISTS | EXISTS key [key ...]| redis-cli EXISTS name<br/>redis-cli EXISTS name age | Check if a key exists |
63
-
| EXPIRE | EXPIRE key seconds [NX / XX / GT / LT]| redis-cli EXPIRE name 20<br/>redis-cli EXPIRE name 20 NX | Set a key's time to live in seconds |
64
-
| PERSIST | PERSIST key | redis-cli PERSIST name | Remove the expiration from a key |
65
-
| TTL | TTL key | redis-cli TTL key | Get the time to live for a key (in seconds) |
66
-
| TYPE | TYPE key | redis-cli TYPE name | Determine the type stored at a key |
67
-
| PING | PING | redis-cli PING | Ping the server |
68
-
| ECHO | ECHO <message>| redis-cli ECHO "Hello world" | Echo the given string |
57
+
| SET |**SET keyvalue**[NX / XX][GET]<br/>[EX seconds / PX milliseconds<br/> / EXAT unix-time-seconds / PXAT unix-time-milliseconds / KEEPTTL]| redis-cli SET name omkar<br/>redis-cli SET name omkar GET KEEPTTL| Set the string value of a key |
58
+
| GET |**GET key**| redis-cli GET name | Get the value of a key |
59
+
| DEL |**DEL key**[key ...]| redis-cli DEL name<br/>redis-cli DEL name age | Delete one or more keys |
60
+
| INCR |**INCR key**| redis-cli INCR age | Increment the integer value of a key |
61
+
| DECR |**DECR key**| redis-cli DECR age | Decrement the integer value of a key |
62
+
| EXISTS |**EXISTS key**[key ...]| redis-cli EXISTS name<br/>redis-cli EXISTS name age | Check if a key exists |
63
+
| EXPIRE |**EXPIRE key seconds**[NX / XX / GT / LT]| redis-cli EXPIRE name 20<br/>redis-cli EXPIRE name 20 NX | Set a key's time to live in seconds |
64
+
| PERSIST |**PERSIST key **| redis-cli PERSIST name | Remove the expiration from a key |
65
+
| TTL |**TTL key**| redis-cli TTL key | Get the time to live for a key (in seconds) |
66
+
| TYPE |**TYPE key**| redis-cli TYPE name | Determine the type stored at a key |
67
+
| PING |**PING**| redis-cli PING | Ping the server |
68
+
| ECHO |**ECHO message**| redis-cli ECHO "Hello world" | Echo the given string |
69
69
70
70
71
71
@@ -91,6 +91,9 @@ go build -o build/redis-lite-server -v
0 commit comments