Skip to content

Commit 53d7c0d

Browse files
committed
changed the base class name from BaseConnectionPool to BaseConnectionFactory
1 parent 0f4c411 commit 53d7c0d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

django_valkey/async_cache/pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from valkey.asyncio.sentinel import Sentinel
1010
from valkey._parsers.url_parser import to_bool
1111

12-
from django_valkey.base_pool import BaseConnectionPool
12+
from django_valkey.base_pool import BaseConnectionFactory
1313

1414

15-
class AsyncConnectionFactory(BaseConnectionPool[AValkey, ConnectionPool]):
15+
class AsyncConnectionFactory(BaseConnectionFactory[AValkey, ConnectionPool]):
1616
path_pool_cls = "valkey.asyncio.connection.ConnectionPool"
1717
path_base_cls = "valkey.asyncio.client.Valkey"
1818

django_valkey/base_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Base = TypeVar("Base")
88

99

10-
class BaseConnectionPool(Generic[Base, Pool]):
10+
class BaseConnectionFactory(Generic[Base, Pool]):
1111
# Store connection pool by cache backend options.
1212
#
1313
# _pools is a process-global, as otherwise _pools is cleared every time

django_valkey/pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from valkey.sentinel import Sentinel
1010
from valkey._parsers.url_parser import to_bool
1111

12-
from django_valkey.base_pool import BaseConnectionPool, Base
12+
from django_valkey.base_pool import BaseConnectionFactory, Base
1313

1414

15-
class ConnectionFactory(BaseConnectionPool[Valkey, ConnectionPool]):
15+
class ConnectionFactory(BaseConnectionFactory[Valkey, ConnectionPool]):
1616
path_pool_cls = "valkey.connection.ConnectionPool"
1717
path_base_cls = "valkey.client.Valkey"
1818

0 commit comments

Comments
 (0)