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),
|
entities: Object.values(Models).filter((x) => x?.constructor?.name !== "Object" && x?.name),
|
||||||
synchronize: type !== "mongodb",
|
synchronize: type !== "mongodb",
|
||||||
logging: false,
|
logging: false,
|
||||||
cache: {
|
// cache: { // cache is used only by query builder and entity manager
|
||||||
duration: 1000 * 30,
|
// duration: 1000 * 30,
|
||||||
type: "redis",
|
// type: "redis",
|
||||||
options: {
|
// options: {
|
||||||
host: "localhost",
|
// host: "localhost",
|
||||||
port: 6379,
|
// port: 6379,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
bigNumberStrings: false,
|
bigNumberStrings: false,
|
||||||
supportBigNumbers: true,
|
supportBigNumbers: true,
|
||||||
name: "default",
|
name: "default",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user