redis server stop 1

redis server stop

$ redis-cli shutdown

Here is what the above code is Doing:
1. We’re importing the Redis class from the redis-py library.
2. We’re creating a Redis object by calling the Redis() function.
3. We’re calling the set() method on our Redis object.
4. We’re calling the get() method on our Redis object.
5. We’re calling the shutdown() method on our Redis object.

Similar Posts