清空,重构
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
from decouple import config as env
|
||||
|
||||
|
||||
class RedisCache:
|
||||
"""Redis 工具骨架。"""
|
||||
|
||||
@staticmethod
|
||||
def get_client_url() -> str:
|
||||
return env("REDIS_URL", default="redis://127.0.0.1:6379/0")
|
||||
|
||||
@staticmethod
|
||||
def make_key(*parts: str) -> str:
|
||||
return ":".join(["fonrey", *parts])
|
||||
Reference in New Issue
Block a user