mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🌟 feat: Linux命令查询增加缓存,速度更快!
This commit is contained in:
parent
f6caf50e67
commit
7f4eed9cac
@ -296,7 +296,7 @@ export class query extends plugin {
|
||||
});
|
||||
linuxOrderData = (await resp.json()).data;
|
||||
// 如果缓存里没有就保存一份到缓存里
|
||||
await redisExistAndInsertObject(REDIS_YUNZAI_LINUX, { [order]: linuxOrderData });
|
||||
linuxOrderData && await redisExistAndInsertObject(REDIS_YUNZAI_LINUX, { [order]: linuxOrderData });
|
||||
} else {
|
||||
// 在缓存里就取出
|
||||
linuxOrderData = linuxInRedis[order];
|
||||
|
Loading…
x
Reference in New Issue
Block a user