diff --git a/src/storage.ts b/src/storage.ts index 1d7ff4e..f261bb8 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -6,6 +6,7 @@ import "reflect-metadata"; import { createConnection, getConnection } from "typeorm"; import { defaults } from "./defaults"; import { startServer } from "./server"; +import { createHandyClient } from "handy-redis"; // Queue import queue from "queue"; @@ -37,6 +38,9 @@ export const plugin: Container.IPluginDescriptor = { container.resolvePlugin("logger").info(`Registering Storage Plug-in.`); container.resolvePlugin("logger").info(`Storage Plug-in Database Path: ${dbPath}`); + const redis = createHandyClient(); + await redis.flushdb(); + await createConnection({ type: "sqlite", database: dbPath,