mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 18:32:33 +01:00
Typeorm doesn't even use the cache for BaseEntity.* methods
This commit is contained in:
parent
544ded68a3
commit
6fa18fdc89
@ -32,14 +32,14 @@ export function initDatabase(): Promise<Connection> {
|
||||
entities: Object.values(Models).filter((x) => x?.constructor?.name !== "Object" && x?.name),
|
||||
synchronize: type !== "mongodb",
|
||||
logging: false,
|
||||
cache: {
|
||||
duration: 1000 * 30,
|
||||
type: "redis",
|
||||
options: {
|
||||
host: "localhost",
|
||||
port: 6379,
|
||||
},
|
||||
},
|
||||
// cache: { // cache is used only by query builder and entity manager
|
||||
// duration: 1000 * 30,
|
||||
// type: "redis",
|
||||
// options: {
|
||||
// host: "localhost",
|
||||
// port: 6379,
|
||||
// },
|
||||
// },
|
||||
bigNumberStrings: false,
|
||||
supportBigNumbers: true,
|
||||
name: "default",
|
||||
|
Loading…
Reference in New Issue
Block a user