valkey-py icon indicating copy to clipboard operation
valkey-py copied to clipboard

cluster initialization documentation

Open amirreza8002 opened this issue 3 months ago • 2 comments

hi again 👋

https://valkey-py.readthedocs.io/en/latest/clustering.html#creating-clusters it might be worth to add a few lines about creating cluster client connections

the ones i can see

  • ValkeyCluster().from_url(...)
  • await ValkeyCluster(...).initialize()
  • await ValkeyCluster(...) (calls initialize)
  • async with ValkeyCluster(...) (calls initialize)

also for sync cluster, it can be used with a context manager with ValkeyCluster()

I'll add these up if it's good with you

amirreza8002 avatar Sep 04 '25 22:09 amirreza8002