Update project for sphinx to use libbot 4.3.0 #221

Merged
profitroll merged 65 commits from dev into profitroll/sphinx 2025-07-08 01:42:28 +03:00
2 changed files with 2 additions and 10 deletions
Showing only changes of commit e4ce5976f2 - Show all commits

View File

@@ -7,8 +7,6 @@ from pymemcache import Client
from .cache import Cache
from ..utils._objects import _json_to_string, _string_to_json
DEFAULT_TTS_SECONDS: int = 300
logger: Logger = logging.getLogger(__name__)
@@ -20,9 +18,7 @@ class CacheMemcached(Cache):
) -> None:
self.client: Client = client
self.prefix: str | None = prefix
self.default_ttl_seconds: int = (
default_ttl_seconds if default_ttl_seconds is not None else DEFAULT_TTS_SECONDS
)
self.default_ttl_seconds: int = default_ttl_seconds if default_ttl_seconds is not None else 0
logger.info("Initialized Memcached for caching")

View File

@@ -7,8 +7,6 @@ from redis import Redis
from .cache import Cache
from ..utils._objects import _json_to_string, _string_to_json
DEFAULT_TTS_SECONDS: int = 300
logger: Logger = logging.getLogger(__name__)
@@ -20,9 +18,7 @@ class CacheRedis(Cache):
) -> None:
self.client: Redis = client
self.prefix: str | None = prefix
self.default_ttl_seconds: int = (
default_ttl_seconds if default_ttl_seconds is not None else DEFAULT_TTS_SECONDS
)
self.default_ttl_seconds: int | None = default_ttl_seconds
logger.info("Initialized Redis for caching")