mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-09 19:51:36 +02:00
Add script to clear key value cache
This commit is contained in:
parent
892c06a110
commit
c3231defb8
2 changed files with 11 additions and 0 deletions
10
src/scripts/cache-clear-key-value.ts
Normal file
10
src/scripts/cache-clear-key-value.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import ora from 'ora';
|
||||
import {prisma} from '../utils/db.js';
|
||||
|
||||
(async () => {
|
||||
const spinner = ora('Clearing key value cache...').start();
|
||||
|
||||
await prisma.keyValueCache.deleteMany({});
|
||||
|
||||
spinner.succeed('Key value cache cleared.');
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue