Skip to content

Commit b3ec9d2

Browse files
committed
Add async class aliases for redis-py compatibility
Close #121 Signed-off-by: Salvatore Mesoraca <[email protected]>
1 parent 1f6b63c commit b3ec9d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

valkey/asyncio/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
WatchError,
3333
)
3434

35+
Redis = Valkey
36+
StrictRedis = StrictValkey
37+
RedisCluster = ValkeyCluster
38+
RedisError = ValkeyError
39+
3540
__all__ = [
3641
"AuthenticationError",
3742
"AuthenticationWrongNumberOfArgsError",
@@ -51,12 +56,16 @@
5156
"Valkey",
5257
"ValkeyCluster",
5358
"ValkeyError",
59+
"Redis",
60+
"RedisCluster",
61+
"RedisError",
5462
"ResponseError",
5563
"Sentinel",
5664
"SentinelConnectionPool",
5765
"SentinelManagedConnection",
5866
"SentinelManagedSSLConnection",
5967
"SSLConnection",
68+
"StrictRedis",
6069
"StrictValkey",
6170
"TimeoutError",
6271
"UnixDomainSocketConnection",

0 commit comments

Comments
 (0)