Skip to content

using ByteArrayCodec.INSTANCE in RedissonBasedProxyManager #460

Discussion options

You must be logged in to vote

Hello @Jaysok

I expected to see the entries I configured in Redis in JSON format. However, they are encoded in binary which is not human readable.

Wrapping-out byte array by quotas will not make it more readable, it will stay be array of bytes.

If my understanding is correct, the codec used here should match the codec configured in RedissonClient.

No. Redisson API explicitly allows you to choose codec that is more performant/suitable for each particular case.

If you want to read stored data, you shoud to learn serialization/deserialization routine https://github.com/bucket4j/bucket4j/blob/8.9/bucket4j-core/src/main/java/io/github/bucket4j/distributed/remote/RemoteBucketState.java#L51

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jaysok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants