Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Browsing all 2203 articles
Browse latest View live
↧

Disable Redis AutoConfig in spring boot when testing

I am trying to disable Redis when I am testing with spring boot. I have disabled my configuration but the auto config created a default connection and fails because it can't connect to a non-existent...

View Article


how to use redis to persist token using spring-security-oauth2

It is my first time developing an application with OAuth2 approach. I started based on certain tutorial and I am moving forward from this...

View Article


why lettuce CommandHandler and RedisStateMachine are called many times, can...

ENVHi, I have a redis cluster like:spring.redis.cluster.nodes=10.105.179.236:9001,10.105.179.236:9002,10.106.157.104:9001,10.106.157.104:9002,10.106.146.95:9001,10.106.146.95:9002DB:My Sprintboot API...

View Article

Java Spring Redis: Set time to live with annotation

I am searching a way to set the TTL with spring annotation.I tried @CacheEvict(allEntries = true, value = { "mycache" })@Scheduled(fixedDelay = 5000)And putting @EnableScheduling on my Application.java...

View Article

JRedisGraphCompileTimeException:...

I am creating Cypher query from my java program and passing that raw query to RedishGraph.Query() method. Getting below exception"com.redislabs.redisgraph.exceptions.JRedisGraphCompileTimeException:...

View Article


How to set a cache in a struts2 application using redis?

I am creating a struts2 web application. I should have to give a cache control to this application. So I need redis to done it. But I don't know about redis. So anyone please tell me, Is it possible to...

View Article

Java Spring Boot how to set Redis cache key for multiple query string...

With the following Controller method: @GetMapping("/books") public ResponseEntity<List<Book>> getBooksByTitleOrAuthor( @RequestParam(required = false) String title, @RequestParam(required =...

View Article

Tomcat with RedissonSessionManager cannot deserialize SecurityContextImpl

We have a legacy JEE Application which is using spring-security-web 4.2.8 and we try to make it cloud-enabled.Therefore we try to share the sessions via redis.So we added the jars to the lib folder of...

View Article


Error handling in deserialisation in redis CacheManager in springboot

I am trying to use cutom serialisation for redis CacheManager in spring boot instead of using default java serialisation. How do I do error handling here? If there is a serialisation/deserialisation...

View Article


FindBy in Redis Repository with spring

I want save and get data from redis use spring. I have redis only for profile SOME. I save data ok. But when I try to get data by method findByIdAndName, I always have empty Optional.My...

View Article

How to share a datastructure in a distributed environment? [closed]

Usecase : I have a requirement where I have a list of data sources and this list would be used in quartz job. At a time 3 jobs would be triggered and each job has to take a datasource and scan and...

View Article

Retrieving and deleting a key in single call from Redis server

For a use case, I want to delete a key upon retrieval from Redis server in a single call i.e. key is a one time use. I'm using lettuce library to connect to redis server. Is there any specific...

View Article

Spring @RedisHash findAll() return null values

I'm using Redis to store students with entity:@RedisHash("Student")public class Student implements Serializable { @Id private Long id; @Indexed private String name; private Integer age; // getters //...

View Article


Using Hazelcast / Redis for DB backed cache requirement

I am developing a distributed Java application that needs to check a list of blacklist userids on each request. If request fails on some eligibility rules, system should add userid ( a parameter of...

View Article

Connection pooling with Redisson

My application makes a lot of calls to Redis, I dont want to create a client everytime. Is there a way I can create a connection pool and use connections from the pool whenever I need to connect to...

View Article


Shedlock with Spring and Redis

I'm using Shedlock with Spring Boot and Redis as Lock Provider.Everything seems to work fine. But when I manually go to the Redis during the execution of the task I see no specific KEY for the lock.On...

View Article

Why I can't retrieve value from Redis from Spring Boot application?

Why I can't retrieve value from Redis from Spring Boot application?I run Redis locally within Docker container with default port and host.I run Spring Boot application with the following setting: @Bean...

View Article


Redis JsonJacksonCodec. Problem with LocalDateTime serialization

I am using Spring Boot 2, Redis server v=5.0.9, Java 14.I am trying to save object, which contains LocalDateTime field to RMap and getting next...

View Article

Embedded Redis server fails to start

I have a Springboot project and as part of my tests I use embedded Redis server. When I run a specific test class with Intellij it works fine and tests pass. But when I use mvn clean test command to...

View Article

Redisson release lock from different threads

I'm trying to create an infrastructure where different machines acquire shared locks through Redisson. Once the lock is acquired, some async tasks gets done, finally, when I finish the job, I'm...

View Article
Browsing all 2203 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>