skip to Main Content

Java Spring Boot how to set Redis cache key for multiple query string parameters on controller

With the following Controller method: @GetMapping("/books") public ResponseEntity<List<Book>> getBooksByTitleOrAuthor( @RequestParam(required = false) String title, @RequestParam(required = false) String author) { if ((title== null || title.isEmpty()) && (author == null || author.isEmpty())) return new ResponseEntity<>(HttpStatus.BAD_REQUEST); if (author != null) { Logger.info("GET…

VIEW QUESTION

How to build Redis 6 with TLS on Mac

I want to use TLS with Redis on Mac (macOS 10.15.4, kernel: Darwin 19.4.0). This is what I tried according to Documentation: export BUILD_TLS=yes mkdir redis && cd redis curl -O http://download.redis.io/redis-stable.tar.gz tar xzvf redis-stable.tar.gz cd redis-stable make BUILD_TLS=yes make…

VIEW QUESTION
Back To Top
Search