@GetMapping(value = "{ticketId}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Fetch the ticket entity from the Redis first-level in-memory CAS cache.",
        parameters = @Parameter(name = "ticketId", required = true, description = "The ticket id to fetch"))
    public ResponseEntity fetchTicket(@PathVariable final String ticketId) {
        val id = ticketRegistry.getObject().digestIdentifier(ticketId);
        val ticketInCache = ticketCache.getObject().getIfPresent(id);
        return buildResponse(ticketInCache);
    }
Fetch ticket and return response entity.

@param ticketId the ticket id
@return the response entity
support/cas-server-support-redis-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/RedisTicketRegistryCacheEndpoint.java