mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
refactor: 移除PostgreSQL支持并优化数据库初始化流程
移除PostgreSQL相关配置和代码,简化数据库连接逻辑。优化数据库初始化流程,避免重复创建表和插入数据。改进Redis缓存配置,移除不必要的过期时间设置。
This commit is contained in:
@@ -57,8 +57,8 @@ class RedisCURD:
|
||||
async def set(self, key: str, value: Any, expire: Optional[int] = None) -> bool:
|
||||
"""设置缓存"""
|
||||
try:
|
||||
if expire is None:
|
||||
expire = 300
|
||||
# if expire is None:
|
||||
# expire = 300
|
||||
|
||||
# 根据数据类型选择序列化方式
|
||||
if isinstance(value, (int, float, str)):
|
||||
|
||||
Reference in New Issue
Block a user