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

quarkus.cache.redis.value-type to protobuf values

$
0
0

In quarkus, I want to use the redis-based cache. The results are protobuf objects, which can be serialized to byte[] or ByteString.

I understand that the value type must be serializable, so I tried to use

quarkus.cache.redis.value-type=byte[]

Then it gives me the error, as byte[] is not a class.

I worked around by using String, but in the code, I had to firstly convert byte[] to String when storing the result into redis, and then get the byte[] from String when get it back. This is not idea.

What quarkus.cache.redis.value-type should I use in this case?


Viewing all articles
Browse latest Browse all 2203

Trending Articles



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