This is a lite implementation of a Redis Client/Server with some of the core commands such as GET, SET, and EXPIRE.
Link to demonstration: https://youtu.be/Q4EN3oT5QPU
-
Open the command line and change directory to redis/server
-
Run the server with
$ python3 server.py -
Open another Terminal and change directory to redis/client and run the Client with
$ python3 client.py -
Now you can run the commands in the client(s)
Hit the redis server to check responsiveness
$ PING
Test a get response from the server
$ ECHO <value>
Get value for the provided key
$ GET <key>
Set a key/value entry within the redis cache
$ SET <key> <value>
Set an expiration time (in seconds) for an entry
$ SET <key> <value> EXPIRES <int>
Increment a numeric value for the provided key
$ INCR <key>
Deletes an entry based on the provided key
$ DEL <key>
Clear all entries for this client entry
$ flushAll
Gracefully disconnect the client
$ exit