ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/AbstractCacheEntrySerializer.java
@Override
    public byte[] serialize(CacheEntry ce) {
        try {
            byte[] data = doSerialize(ce);
            return data != null ? (compressor != null ? compressor.compress(data) : data) : null;
        } catch (Exception e) {
            LOGGER.error(e.getMessage(), e);
            return null;
        }
    }
@Override
    public byte[] serialize(CacheEntry ce) {
        try {
            byte[] data = doSerialize(ce);
            return data != null ? (compressor != null ? compressor.compress(data) : data) : null;
        } catch (Exception e) {
            LOGGER.error(e.getMessage(), e);
            return null;
        }
    }
{@inheritDoc}