skip to Main Content

Redis – Spring boot native image can not serialize protobuf object

I have a method @Cacheable(value = USER_IDENTITIES_PROTO_CACHE) public UserIdentitiesResponseOuterClass.UserIdentitiesResponse findUserIdentitiesProto(UUID userId) { where UserIdentitiesResponseOuterClass.UserIdentitiesResponse is a class generated by protobuff. When using JVM everything works well but in the native image I am getting the exception "Failure putting into cache:…

VIEW QUESTION

Laravel: regenerate cache

I am using cache to store data structure from database: Cache::forever(static::DATA_STRUCTURE, json_encode($tree)); However before I generate there should cleaned old: Artisan::call('cache:clear'); But generating new cache takes some time and I want to store old cache until new will be generated.…

VIEW QUESTION

Spring Boot Upgrade Redis – Null key returned for cache operation

After the spring 3.x upgrade Redis Cache gives Null key returned for cache operation spring-boot version: 3.2.2 <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>5.1.0</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <exclusions> <exclusion> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> </exclusion> </exclusions> </dependency> Cachable Method: @Cacheable(value = "user", key = "#username",…

VIEW QUESTION
Back To Top
Search