Answers for "typeorm cache all queries"

0

typeorm cache all queries

/* 
* By default, TypeORM uses a separate table called 
* query-result-cache and stores all queries and 
* results there. Table name is configurable, so you 
* could change it by specifying a different value 
* in the tableName property. Example:
*/

{
    type: "mysql",
    host: "localhost",
    username: "test",
    ...
    cache: {
        type: "database",
        tableName: "configurable-table-query-result-cache"
    }
}
Posted by: Guest on March-30-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language