summaryrefslogtreecommitdiff
path: root/searx/cache.py
diff options
context:
space:
mode:
authorJost Alemann <58050402+ddogfoodd@users.noreply.github.com>2025-05-20 19:03:54 +0000
committerGitHub <noreply@github.com>2025-05-20 21:03:54 +0200
commit7420706a5074803a78f3c795cf79427746e504e0 (patch)
tree67b3ed9c28fe3d145d2d3ab8eaa96ebd5bd34714 /searx/cache.py
parent6ec554cb5b014dc362c9dc6c4618a6614199911d (diff)
[chore] fix some docstring typos (#4815)
Diffstat (limited to 'searx/cache.py')
-rw-r--r--searx/cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/cache.py b/searx/cache.py
index ea6c17be9..96644419b 100644
--- a/searx/cache.py
+++ b/searx/cache.py
@@ -42,7 +42,7 @@ class ExpireCacheCfg(msgspec.Struct): # pylint: disable=too-few-public-methods
DB will be created in `/tmp/sxng_cache_{self.name}.db`"""
MAX_VALUE_LEN: int = 1024 * 10
- """Max lenght of a *serialized* value."""
+ """Max length of a *serialized* value."""
MAXHOLD_TIME: int = 60 * 60 * 24 * 7 # 7 days
"""Hold time (default in sec.), after which a value is removed from the cache."""
@@ -80,7 +80,7 @@ class ExpireCacheCfg(msgspec.Struct): # pylint: disable=too-few-public-methods
@dataclasses.dataclass
class ExpireCacheStats:
- """Dataclass wich provides information on the status of the cache."""
+ """Dataclass which provides information on the status of the cache."""
cached_items: dict[str, list[tuple[str, typing.Any, int]]]
"""Values in the cache mapped by context name.