Skip to content

Instantly share code, notes, and snippets.

View eastoid's full-sized avatar

mog eastoid

  • Goofball United Ltd.
  • gihab com
View GitHub Profile
@sscarduzio
sscarduzio / BinaryRedisCodec.java
Last active June 8, 2023 14:17
Binary codec for Lettuce (asynchronous redis client for Java)
package com.lambdaworks.redis.codec;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
/**
* A {@link RedisCodec} that handles binary keys and values.
* This is useful if you are storing non-UTF8 data in Redis
* such as serialized objects or multimedia content.