
io.lettuce.core.codec.Utf8StringCodec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.codec;
import java.nio.charset.StandardCharsets;
/**
* A {@link RedisCodec} that handles UTF-8 encoded keys and values.
*
* @author Will Glozer
* @author Mark Paluch
* @see StringCodec
* @see StandardCharsets#UTF_8
* @deprecated since 5.2, use {@link StringCodec#UTF8} instead.
*/
@Deprecated
public class Utf8StringCodec extends StringCodec implements RedisCodec {
/**
* Initialize a new instance that encodes and decodes strings using the UTF-8 charset;
*/
public Utf8StringCodec() {
super(StandardCharsets.UTF_8);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy