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

use session-data-redis @Autowired FindByIndexNameSessionRepository run error

this is my...

View Article


Spring Boot 2.4.2 - Redisson Client - DNS Resolution Problem at start

I'm upgrading my Spring Boot version from 2.1.x to 2.4.2 and using Redisson as Redis Client in the project. When I compiled and run the code, I got the following warning:Unable to load...

View Article


Lazy session fetching with Spring Redis

I am testing the solution of storing session in spring boot redis. The problem is that in each request all session beans are fetched and deserialized. Is it possible to fetch the beans in lazy way?...

View Article

Spring Data Redis Expire Key

I have a One Spring Hibernate Application. In my application, Recently i am implemented Spring data Redis.spring-servlet.xml<!-- redis connection factory --><bean id="jedisConnFactory"...

View Article

Spring Data Redis composite key

I need to store the following class in Redis:@Data@Builder@Accessors(chain = true)@RedisHash("Meter")public class Meter { @org.springframework.data.annotation.Id private Id id; private String...

View Article


Where to install Redis certificate

I have a certificate for Redis. Where do I install this certificate to connect to my Redis server?I've tried to throw it into my java cacerts, but it doesn't work.What is the proper way to do this?

View Article

How to get Pattern as String used for publishing the message in Redis PubSub

I am using below code. pattern is in byte[] type. Have to get the pattern as String for business logic. Is there any way to get it ! Have to make publisher or subscription topic names dynamic.public...

View Article

Encoding problem with POST requests - HttpServerletRequest Java Redis UTF-8 &...

When making a POST request with characters such as 'åäö' via IE11 and right clicking to select encoding UTF-8, the 'åäö' characters break. They do not break when selecting Western european (Windows)...

View Article


Pagination in redis

a lot of lines come to my method, page number and page size, when I worked with the postgres database everything was simple - I created a request using Spring data jpa, which returned the desired...

View Article


Cache non-serializable objects using Spring Boot Cache backed by Redis

I want to cache responses from a 3rd party API that provides its own client and data classes. The problem though, is that neither of the data classes implements the Serialazable interface, so caching...

View Article

Best practice for Elasticache(Redis) Lettuce client connection

new to Elasticache(Redis) Lettuce client, I would like to know the best practice for Lettuce StatefulRedisClusterConnection.we have a service written in Java that reads from Elasticache(Redis) -- we...

View Article

Circuit-break L2 cache in Hibernate in case of redis connection issues

I am using redisson-hibernate as Hibernate 2nd level Cache provider. If redis server becomes unavailable, while the application is running, the whole application goes down. I am trying to find a way to...

View Article

Terminated Spring Boot App in Eclipse - Shutdown hook not called

I have a Spring Boot + Spring Data Redis/KeyValue project. I setup a Spring profile to run the application with all dependencies embedded. So at startup, I launch an embedded Redis Server. Everything...

View Article


Error in custom provider, java.lang.NoClassDefFoundError: Could not...

I have created this dropwizard project for which I am trying to add Redisson client using Config(). The redis version is 3.8.1. Below is custom code for creating redis object:@Provides@Singletonpublic...

View Article

ERR This instance has cluster support disabled

I am trying to connect to cluster Redis with a valid URL and port I got this error:Caused by: io.lettuce.core.RedisCommandExecutionException: ERR This instance has cluster support disabled at...

View Article


Spring REDIS Data - Runtime TTL on a REDIS cache key

I am using spring data redis to set a cache value but want to have the TTL on the key defined runtime based on the incoming header value. I know I can define a bean like this : public Entry<String,...

View Article

Redis & java : count input data from rest services

I have a rest service and i want count one field from that for every called service and if count of field was bigger than 10 in my cash then raise exceptionhow can i do that

View Article


Using mybatis paging query, database data can be inserted or updated at any...

Background: the project uses mybatis as the database framework, and the database table structure has a status field to identify whether the data is expired or not. The expired data is no longer...

View Article

How to force stop/kill Spring Redis embedded server programmatically

I am using Redis embedded server for my integrations tests and I noticed that using the RedisServer.stop() method is not really stoping the mock server. Any idea how to force kill it in my test...

View Article

Redis Database Implementation with Java

Good Day,I have a project to do where I have to create a database with Redis bit arrays data type and write a Java code to access the database with a GUI drop down menu. I was able to implement the...

View Article
Browsing all 2219 articles
Browse latest View live


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