Class MappingRedisConverter.BinaryKeyspaceIdentifier
java.lang.Object
org.springframework.data.redis.core.convert.MappingRedisConverter.BinaryKeyspaceIdentifier
- Enclosing class:
- MappingRedisConverter
Value object representing a binary Redis Hash/Object identifier composed from keyspace and object id in the form of
keyspace:id.
- Since:
- 1.8.10
- Author:
- Mark Paluch, Stefan Berger
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final byte[]
static final byte[]
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getId()
byte[]
boolean
static boolean
isValid
(byte[] key) Check whether thekey
is valid, in particular whether the key contains a keyspace and an id part in the form of keyspace:id.of
(byte[] key) Parse a binarykey
intoMappingRedisConverter.BinaryKeyspaceIdentifier
.
-
Field Details
-
PHANTOM
public static final byte[] PHANTOM -
DELIMITER
public static final byte DELIMITER- See Also:
-
PHANTOM_SUFFIX
public static final byte[] PHANTOM_SUFFIX
-
-
Method Details
-
of
Parse a binarykey
intoMappingRedisConverter.BinaryKeyspaceIdentifier
.- Parameters:
key
- the binary key representation.- Returns:
MappingRedisConverter.BinaryKeyspaceIdentifier
for binary key.
-
isValid
public static boolean isValid(byte[] key) Check whether thekey
is valid, in particular whether the key contains a keyspace and an id part in the form of keyspace:id.- Parameters:
key
- the key.- Returns:
- true if the key is valid.
-
getKeyspace
public byte[] getKeyspace() -
getId
public byte[] getId() -
isPhantomKey
public boolean isPhantomKey()
-