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

Redis Template does not automatically save a phantom entity

At the risk of making a fool out of myself, I have a question regarding redis that has plagued me for 2 days.I have a basic project with spring boot 2.4.0 (spring-data-redis included).I have the...

View Article


class file for redis.clients.jedis.JedisShardInfo not found

when I upgrade the jedis to version 4.2.3 in gradle.build: api "redis.clients:jedis:4.2.3"show...

View Article


setup and install redis on windows

Error on consoleI set redis.windows.conf on bind 127.0.0.1 after that i go in cmd and run redis-server.exe redis.windows.conf but still get some different address like a error. Anyone have same...

View Article

springboot configure j2cache [closed]

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'logController': Unsatisfied dependency expressed through field 'cacheChannel'; nested exception is...

View Article

Trying to understand how passing an interface to a constructor implements the...

I am pretty new to Java and am trying to do something with an interface.io.quarkus.redis.datasource.ReactiveRedisDataSource is an interface:package io.quarkus.redis.datasource;// imports are here...

View Article


Jedis Issue - "Failed to connect to any host resolved for DNS name."

Whenever I try to connect to my Redis server from my Java application using Jedis, I get JedisConnectionException: Failed to connect to any host resolved for DNS name. The Java application runs on the...

View Article

spring boot redis boolean value is not working

I am trying to get data from redis using crudRepository but it is not filtering by the boolean field. When I write repository.findAll() i am getting a list of objects and this object list's elements...

View Article

Redisson where is the waitForUnlock method?

As title, may I know do the waitForUnlock method exist Redisson? I search though internet and check the method one by one seem no method suit my use case. Below is the code how I make it. Do we have...

View Article


Redis Cluster on K8s - problem with external connection

My problem is to connect with the redis cluster outside the cloud(uses Redisson as a client).I have debugged and when Redis client connects to the cluster, it uses properties from nodes.conf, and then...

View Article


Spring Boot Redis configuration not working

I am developing a Spring Boot [web] REST-style application with a ServletInitializer (since it needs to be deployed to an existing Tomcat server). It has a @RestController with a method that, when...

View Article

Subscription to Redis Stream Blocks Connections for Other Requests With Vert.x

I'm implementing an application with Vert.x (and their Redis Client library) that is able to listen to Redis Streams. For that I have n instances in my app subscribing to it. The Vert.x documentation...

View Article

Storing Json in Embedded Redis Server

Is it possible to use redisjson module or other redis modules when we are using embedded redis server in java spring boot application? Is it recommended to use embedded redis server?Currently looking...

View Article

Java Application can not connect to redis when running on docker

I have the following docker compose file: GNU nano 6.2 docker-compose.yml version: '3'services: urgent-fury-pre-prod: image: leonhard8/urgent-fury:latest depends_on: - redis restart: always ports: -...

View Article


Java get map from redis key and add them into another redis Map Key

New to Java. Using version 11.Need to retrive map from a redis key , Insert selected fields and some new fields to a new map key.hgetall operationRedisCacheKey1 : Map<String, String> :...

View Article

Redis slaves cache rate mismatch

We have set up 3 Redis nodes amongst which 1 is designated master(handles writes) other 2 are slave nodes and act as read replicas.We have 3 sentinels also configured for automatic failover.The client...

View Article


The following is a cache null result configuration, cache breakdown?

The configuration to cache empty results was configured in application.yml, but it still crashed while testing the cache breakdown!Under normal circumstances, if the empty result is cached in...

View Article

Spring cache via reactive redis

I want to use Spring Redis as a cache in reactive conditions. Which is better to use? Use multi() or transactions (ReactiveTransactionManager)? Perhaps try redis scripting (EVAL) (operations are atomic...

View Article


Redis pipelining in Quarkus

I'm facing an issue with the Redis connection pool, reaching the max wait queue size, at moments with more reads. There are some reads in a loop that would be good to batch in one request to Redis. But...

View Article

Jedis pipeline execute commands before calling sync method?

I am using the Jedis pipeline to add multiple records in Redis at once. But when I am debugging the code I can see the records appear in Redis even before calling jedis.sync() method. Aren't all...

View Article

How to use Redisson with SSL in k8s

I'm trying to connect to GCP Redis (Memorystore) with TLS enabled. I have the pem file (public key) fetched from GCP.I've found the article described how to connect to redis with pem file using lettuce...

View Article
Browsing all 2203 articles
Browse latest View live


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