Redis-基于redis的cache实现
from django.core import cache, checks
import uuid, time
class CacheLock:
def __init__(self, expries=60, wait_timeout=0) -> None:
'''
expries: 锁的过期时间
wait_timeout: 客户端设置的超时时间
'''
self.cache = cache
s