1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Added check function for BaseCache

This commit is contained in:
almaz amanzholuly 2024-03-07 10:40:44 +05:00
parent b6e2b83901
commit 0574a576ea
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ tests/.coverage*
build/
tests/report/
tests/screenshots/
./idea

View File

@ -388,10 +388,11 @@ class BaseCache:
async def aclose(self, **kwargs):
pass
def check(self):
return []
memcached_error_chars_re = _lazy_re_compile(r"[\x00-\x20\x7f]")
def memcache_key_warnings(key):
if len(key) > MEMCACHE_MAX_KEY_LENGTH:
yield (