Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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"
    }
}
Source by typeorm.io #
 
PREVIOUS NEXT
Tagged: #typeorm #cache #queries
ADD COMMENT
Topic
Name
2+1 =