@FunctionalInterface public interface RedisElementReader<T>
Modifier and Type | Method and Description |
---|---|
static <T> RedisElementReader<T> |
from(RedisSerializer<T> serializer)
Create new
RedisElementReader using given RedisSerializer . |
T |
read(ByteBuffer buffer)
Deserialize a
ByteBuffer into the according type. |
@Nullable T read(ByteBuffer buffer)
ByteBuffer
into the according type.buffer
- must not be null.static <T> RedisElementReader<T> from(RedisSerializer<T> serializer)
RedisElementReader
using given RedisSerializer
.serializer
- must not be null.RedisElementReader
.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.