redis
- Version:
7.2.3
- Category:
data
- Cluster:
Vali
Description
Redis is an open-source, in-memory data store used as a cache, message broker, or a database.
Documentation
Official Redis Documentation: https://redis.io/docs/latest/
List of Redis commands: https://redis.io/docs/latest/commands/
Examples/Usage
Load redis:
$ module load data/redis/7.2.3
Connect to redis:
r = redis.Redis(host="localhost", port=6379, db=0, decode_responses=True)
How to set and get a string value:
res = r.set("bike:1", "Process 134") print(res) # >>> True res = r.get("bike:1") print(res) # >>> "Process 134"
Unload reids:
$ module unload data/redis/7.2.3
Installation
Source code is obtained from redis