@FunctionalInterface public interface RedisElementWriter<T>
Modifier and Type | Method and Description |
---|---|
static <T> RedisElementWriter<T> |
from(RedisSerializer<T> serializer)
Create new
RedisElementWriter using given RedisSerializer . |
ByteBuffer |
write(T element)
Serialize a
element to its ByteBuffer representation. |
ByteBuffer write(T element)
element
to its ByteBuffer
representation.element
- can be null.ByteBuffer
representing element
in its binary form.static <T> RedisElementWriter<T> from(RedisSerializer<T> serializer)
RedisElementWriter
using given RedisSerializer
.serializer
- must not be null.RedisElementWriter
.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.