@Override
    public Ticket updateTicket(final Ticket ticket) {
        FunctionUtils.doIfNotNull(ticket, __ -> {
            LOGGER.debug("Updating ticket [{}]", ticket);
            addOrUpdateTicket(ticket);
            messagePublisher.ifAvailable(p -> p.update(ticket));
        });
        return ticket;
    }
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