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:
parent
b6e2b83901
commit
0574a576ea
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ tests/.coverage*
|
||||
build/
|
||||
tests/report/
|
||||
tests/screenshots/
|
||||
./idea
|
||||
|
3
django/core/cache/backends/base.py
vendored
3
django/core/cache/backends/base.py
vendored
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user