Interface ValueEncoding
- All Known Implementing Classes:
ValueEncoding.RedisValueEncoding
public interface ValueEncoding
ValueEncoding
is used for the Redis internal data representation used in order to store the value associated
with a key. - Strings
ValueEncoding.RedisValueEncoding.RAW
orValueEncoding.RedisValueEncoding.INT
- Lists
ValueEncoding.RedisValueEncoding.ZIPLIST
orValueEncoding.RedisValueEncoding.LINKEDLIST
- Sets
ValueEncoding.RedisValueEncoding.INTSET
orValueEncoding.RedisValueEncoding.HASHTABLE
- Hashes
ValueEncoding.RedisValueEncoding.ZIPLIST
orValueEncoding.RedisValueEncoding.HASHTABLE
- Sorted Sets
ValueEncoding.RedisValueEncoding.ZIPLIST
orValueEncoding.RedisValueEncoding.SKIPLIST
- Absent keys
ValueEncoding.RedisValueEncoding.VACANT
- Since:
- 2.1
- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
DefaultValueEncoding
implementation of encodings used in Redis. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueEncoding
Get theValueEncoding
for givenencoding
.raw()
-
Method Details
-
raw
-
of
Get theValueEncoding
for givenencoding
.- Parameters:
encoding
- can be null.- Returns:
- never null.
-