const users = await dataSource.getRepository(User).find({
where: { isAdmin: true },
cache: true,
})
const users = await dataSource
.createQueryBuilder(User, "user")
.where("user.isAdmin = :isAdmin", { isAdmin: true })
.cache(true)
.getMany()
const users = await dataSource.getRepository(User).find({
where: { isAdmin: true },
cache: 60000,
})