@Override
    public long countTickets() {
        val redisKeyGenerator = redisKeyGeneratorFactory.getRedisKeyGenerator(TicketGrantingTicket.PREFIX).orElseThrow();
        val redisTicketsKey = redisKeyGenerator.forPrefixAndId("*", "*");
        return casRedisTemplates.getTicketsRedisTemplate().count(redisTicketsKey);
    }
Key-value ticket registry implementation that stores tickets in redis.

@author Misagh Moayyed
@author Jerome Leleu
@since 5.1.0
support/cas-server-support-redis-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/RedisTicketRegistry.java