20 lines
513 B
Java
20 lines
513 B
Java
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());
|
|
}
|
|
}
|