All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.lontime.extredisson.codec.StringBytesMapCodec Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.github.lontime.extredisson.codec;

import org.redisson.client.codec.ByteArrayCodec;
import org.redisson.client.codec.StringCodec;
import org.redisson.client.protocol.Decoder;
import org.redisson.client.protocol.Encoder;

/**
 * StringBytesMapCodec.
 * @author lontime
 * @since 1.0
 */
public class StringBytesMapCodec extends ByteArrayCodec {

    public static final StringBytesMapCodec INSTANCE = new StringBytesMapCodec();
    
    @Override
    public Decoder getMapKeyDecoder() {
        return StringCodec.INSTANCE.getMapKeyDecoder();
    }

    @Override
    public Encoder getMapKeyEncoder() {
        return StringCodec.INSTANCE.getMapKeyEncoder();
    }
}