Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typeorm caching queries time limit by id

const users = await dataSource.getRepository(User).find({
    where: { isAdmin: true },
    cache: {
        id: "users_admins",
        milliseconds: 25000,
    },
})
Source by typeorm.io #
 
PREVIOUS NEXT
Tagged: #typeorm #caching #queries #time #limit #id
ADD COMMENT
Topic
Name
1+2 =