-
Notifications
You must be signed in to change notification settings - Fork 1
Redis
Fernanda Scovino edited this page Aug 10, 2022
·
5 revisions
- In your shell, run:
kubectl port-forward svc/redis -n redis 6379:6379
- Then you can access Redis on your localhost:6379
# first, make sure to install:
# pip install redis-pal
from redis_pal import RedisPal
redis_client = RedisPal(host="...", port=XXXX)
- If running local, set:
redis_client = RedisPal(host="localhost", port=6379)
# get value from key
redis_client.get(key)
# set new value to key
redis_client.set(key, value)