Package org.apereo.cas.ticket.registry
Class RedisCompositeKey
java.lang.Object
org.apereo.cas.ticket.registry.RedisCompositeKey
This is
RedisCompositeKey.- Since:
- 7.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRedisCompositeKey.RedisCompositeKeyBuilder<C extends RedisCompositeKey,B extends RedisCompositeKey.RedisCompositeKeyBuilder<C, B>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRedis message topic key used to sync memory cache across nodes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisCompositeKey.RedisCompositeKeyBuilder<?, ?> builder()static RedisCompositeKeyFor principal redis composite key.static RedisCompositeKeyFor tickets redis composite key.getQuery()To key pattern string.withIdPattern(String id) Construct a redis key that can use pattern matching on IDs.withoutPrefix(String key) Remove the starting prefix from the key.withPrefix(String prefix) withTicketId(String ticketPrefix, String encodedId) With ticket id redis composite key.
-
Field Details
-
REDIS_TICKET_REGISTRY_MESSAGE_TOPIC
Redis message topic key used to sync memory cache across nodes.- See Also:
-
-
Constructor Details
-
RedisCompositeKey
-
-
Method Details
-
forTickets
For tickets redis composite key.- Returns:
- the redis composite key
-
forPrincipal
For principal redis composite key.- Returns:
- the redis composite key
-
toKeyPattern
To key pattern string.- Returns:
- the string
-
withIdPattern
Construct a redis key that can use pattern matching on IDs.- Parameters:
id- the id- Returns:
- the redis composite key
-
withTicketId
With ticket id redis composite key.- Parameters:
ticketPrefix- the ticket prefixencodedId- the encoded id- Returns:
- the redis composite key
-
withoutPrefix
Remove the starting prefix from the key.- Parameters:
key- the key- Returns:
- the string
-
builder
-
getQuery
-
getPrefix
-
withQuery
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPrefix
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-