support/cas-server-support-ehcache-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/EhCacheTicketRegistry.java
/**
     * {@inheritDoc}
     * Either the element is removed from the cache
     * or it's not found in the cache and is already removed.
     * Thus the result of this op would always be true.
     */
Either the element is removed from the cache
or it's not found in the cache and is already removed.
Thus the result of this op would always be true.
Either the element is removed from the cache or it ' s not found in the cache and is already removed . Thus the result of this op would always be true .
@Override
    public boolean deleteSingleTicket(final String ticketId) {
        final Ticket ticket = getTicket(ticketId);
        if (ticket == null) {
            logger.debug("Ticket {} cannot be retrieved from the cache", ticketId);
            return true;
        }
        if (this.ehcacheTicketsCache.remove(ticket.getId())) {
            logger.debug("Ticket {} is removed", ticket.getId());
        }
        return true;
    }
@ Override public boolean deleteSingleTicket ( final String ticketId ) { final Ticket ticket = getTicket ( ticketId ) ; if ( ticket == null ) { logger . debug ( "Ticket {} cannot be retrieved from the cache" , ticketId ) ; return true ; } if ( this . ehcacheTicketsCache . remove ( ticket . getId ( ) ) ) { logger . debug ( "Ticket {} is removed" , ticket . getId ( ) ) ; } return true ; }
{@inheritDoc}
 Either the element is removed from the cache
 or it's not found in the cache and is already removed.
{ @inheritDoc } Either the element is removed from the cache or it ' s not found in the cache and is already removed .