private MessageResult getMessageResult(final RedisMessagePayload command) {
        val ticket = (Ticket) command.getTicket();
        val generator = redisKeyGeneratorFactory.getRedisKeyGenerator(ticket.getPrefix()).orElseThrow();
        val redisKey = generator.forPrefixAndId(ticket.getPrefix(), ticket.getId());
        return new MessageResult(ticket, redisKey);
    }
This is {@link DefaultRedisTicketRegistryMessageListener}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-redis-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/sub/DefaultRedisTicketRegistryMessageListener.java