Redis Python Client

Redis Python Client

github.com

2

About this website

redis-py is the free and open-source Python client library for Redis, the popular in-memory data structure store. Originally developed by Andy McCurdy (andymccurdy) around 2010, redis-py has been the standard Python interface to Redis for over a decade, maintained under the redis organization. The library is used by Instagram, Pinterest, Mozilla, and thousands of other companies for caching, session management, real-time analytics, and message queuing. Key features: connection management: redis-py manages a pool of connections to Redis servers. The ConnectionPool reuses connections across operations, reducing the overhead of creating new TCP connections. Both blocking and async (asyncio) connections are supported. All Redis commands: full coverage of Redis commands including strings (GET, SET, INCR, APPEND), lists (LPUSH, RPUSH, LRANGE), sets (SADD, SMEMBERS, SINTER), sorted sets (ZADD, ZRANGE), hashes (HSET, HGET, HGETALL), bitmaps, HyperLogLog, geospatial indexes (GEOADD, GEORADIUS), and streams (XADD, XREAD, XGROUP). Pub/Sub: publish/subscribe messaging pattern. Subscribers listen to channels and receive messages published by other clients. Useful for real-time notifications and chat applications. Pipelines and transactions: pipeline batches multiple commands into a single request, reducing network round-trips. MULTI/EXEC transactions with WATCH for optimistic locking. Cluster support: RedisCluster client for Redis Cluster, automatically handling key slot routing, node discovery, and cluster reconfiguration. Sentinel support for high-availability setups with automatic failover. Lua scripting: EVAL and EVALSHA for executing server-side Lua scripts. RESP3 protocol support. SSL/TLS for encrypted connections. Connection health checks and automatic reconnection. Type hints for IDE support. Python. MIT.

Tags & Categories

Tags

Statistics

2
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!