File: from_url_password_protected.py

package info (click to toggle)
redis-py-cluster 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 748 kB
  • sloc: python: 5,888; ruby: 1,045; makefile: 542
file content (9 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
from rediscluster import RedisCluster

url="redis://:R1NFTBWTE1@10.127.91.90:6572/0"

rc = RedisCluster.from_url(url, skip_full_coverage_check=True)

rc.set("foo", "bar")

print(rc.get("foo"))