Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typeorm caching queries time limit

const users = await dataSource
    .createQueryBuilder(User, "user")
    .where("user.isAdmin = :isAdmin", { isAdmin: true })
    .cache(60000) // 1 minute
    .getMany()
Source by typeorm.io #
 
PREVIOUS NEXT
Tagged: #typeorm #caching #queries #time #limit
ADD COMMENT
Topic
Name
7+5 =