mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-12 08:38:38 +01:00
new selfhosted version
This commit is contained in:
10
dashboard/server/plugins/cache.ts
Normal file
10
dashboard/server/plugins/cache.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Redis } from "~/server/services/CacheService";
|
||||
|
||||
export default defineNitroPlugin(async nitroApp => {
|
||||
try {
|
||||
await Redis.init();
|
||||
console.log('Cache connected')
|
||||
} catch (ex) {
|
||||
console.error(ex);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user