This commit is contained in:
2025-02-25 10:01:12 +08:00
parent b3c2587903
commit 6a4ff85683
9 changed files with 64 additions and 45 deletions

View File

@@ -1,8 +1,7 @@
import { UserApp, clearAllUserApp } from '../module/get-user-app.ts';
import { redis } from '../module/redis/redis.ts';
import path from 'path';
import { useFileStore } from '@kevisual/use-config/file-store';
const filePath = useFileStore('upload');
import { config, fileStore } from '../module/config.ts';
const main = async () => {
const userApp = new UserApp({ user: 'root', app: 'codeflow' });
@@ -33,7 +32,6 @@ const clearData = async () => {
// clearData();
// clearAllUserApp();
const expireData = async () => {
await redis.set('user:app:exist:' + 'codeflow:root', 'value', 'EX', 2);
process.exit(0);
@@ -45,5 +43,5 @@ const keysData = async () => {
const keys = await redis.keys('user:app:exist:*');
console.log('keys', keys);
process.exit(0);
}
keysData();
};
keysData();