skip to Main Content

Spring Boot Redis Cache remove cache with multiple key

I have a method that saves cache. @GetMapping("/orders") @Cacheable(value = "List<Order>", key = "{#customerName+'s orders', #page, #size}") public List<Order> findOrders(@RequestParam("customerName") String customerName, @RequestParam(name = "page") int page, @RequestParam(name = "size") int size) { ... And I want to remove this…

VIEW QUESTION

Not able to connect to heroku redis

const redis = require("redis"); let client = redis.createClient({ host: process.env.host, port: process.env.port, password:process.env.password }); (async () => { client.on('error', (err) => console.log('Redis Client Error', err)); await client.connect(); console.log("connected to redis") })(); I have added redis-heroku addon to my project, Now…

VIEW QUESTION
Back To Top
Search