@Override
    public CasEvent saveInternal(final CasEvent event) {
        event.assignIdIfNecessary();
        cache.put(UUID.randomUUID().toString(), event);
        return event;
    }
This is {@link InMemoryCasEventRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-events-memory/src/main/java/org/apereo/cas/support/events/dao/InMemoryCasEventRepository.java