You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
503 B
16 lines
503 B
package org.ros.chatto.config;
|
|
|
|
import org.ehcache.event.CacheEvent;
|
|
import org.ehcache.event.CacheEventListener;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@Slf4j
|
|
public class CustomCacheEventLogger implements CacheEventListener<Object, Object> {
|
|
|
|
@Override
|
|
public void onEvent(CacheEvent<? extends Object, ? extends Object> cacheEvent) {
|
|
log.debug("custom Caching event {} key = {} old {} new {} ", cacheEvent.getType(), cacheEvent.getKey(),
|
|
cacheEvent.getOldValue(), cacheEvent.getNewValue());
|
|
}
|
|
}
|