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
Back To Top
Search