Class RedisCompositeKey

java.lang.Object
org.apereo.cas.ticket.registry.RedisCompositeKey

public class RedisCompositeKey extends Object
Since:
7.0.0
  • Field Details

    • REDIS_TICKET_REGISTRY_MESSAGE_TOPIC

      public static final String REDIS_TICKET_REGISTRY_MESSAGE_TOPIC
      Redis message topic key used to sync memory cache across nodes.
      See Also:
  • Constructor Details

    • RedisCompositeKey

      public RedisCompositeKey(String query, String prefix)
  • Method Details

    • forTickets

      public static RedisCompositeKey forTickets()
      For tickets redis composite key.
      Returns:
      the redis composite key
    • forPrincipal

      public static RedisCompositeKey forPrincipal()
      For principal redis composite key.
      Returns:
      the redis composite key
    • toKeyPattern

      public String toKeyPattern()
      To key pattern string.
      Returns:
      the string
    • withIdPattern

      public RedisCompositeKey withIdPattern(String id)
      Construct a redis key that can use pattern matching on IDs.
      Parameters:
      id - the id
      Returns:
      the redis composite key
    • withTicketId

      public RedisCompositeKey withTicketId(String ticketPrefix, String encodedId)
      With ticket id redis composite key.
      Parameters:
      ticketPrefix - the ticket prefix
      encodedId - the encoded id
      Returns:
      the redis composite key
    • withoutPrefix

      public String withoutPrefix(String key)
      Remove the starting prefix from the key.
      Parameters:
      key - the key
      Returns:
      the string
    • builder

      public static RedisCompositeKey.RedisCompositeKeyBuilder<?,?> builder()
    • getQuery

      public String getQuery()
    • getPrefix

      public String getPrefix()
    • withQuery

      public RedisCompositeKey withQuery(String query)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPrefix

      public RedisCompositeKey withPrefix(String prefix)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).