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
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final byte[]static final byte[] -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getId()byte[]booleanstatic booleanisValid(byte[] key) Check whether thekeyis valid, in particular whether the key contains a keyspace and an id part in the form of keyspace:id.of(byte[] key) Parse a binarykeyintoMappingRedisConverter.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 binarykeyintoMappingRedisConverter.BinaryKeyspaceIdentifier.- Parameters:
key- the binary key representation.- Returns:
MappingRedisConverter.BinaryKeyspaceIdentifierfor binary key.
-
isValid
public static boolean isValid(byte[] key) Check whether thekeyis 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()
-