Class MappingRedisConverter.KeyspaceIdentifier
java.lang.Object
org.springframework.data.redis.core.convert.MappingRedisConverter.KeyspaceIdentifier
- Enclosing class:
- MappingRedisConverter
Value object representing a 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
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
boolean
static boolean
Check whether thekey
is valid, in particular whether the key contains a keyspace and an id part in the form of keyspace:id.Parse akey
intoMappingRedisConverter.KeyspaceIdentifier
.
-
Field Details
-
PHANTOM
- See Also:
-
DELIMITER
- See Also:
-
PHANTOM_SUFFIX
- See Also:
-
-
Method Details
-
of
Parse akey
intoMappingRedisConverter.KeyspaceIdentifier
.- Parameters:
key
- the key representation.- Returns:
MappingRedisConverter.BinaryKeyspaceIdentifier
for binary key.
-
isValid
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
-
getId
-
isPhantomKey
public boolean isPhantomKey()
-