ddth-cache-adapter-core/src/main/java/com/github/ddth/cacheadapter/CacheEntry.java
@Override
    public byte[] toBytes() throws SerializationException {
        Map<String, Object> dataMap = new HashMap<>();
        dataMap.put("k", this.key);
        dataMap.put("tac", this.lastAccessTimestampMs);
        dataMap.put("tcr", this.creationTimestampMs);
        dataMap.put("eac", this.expireAfterAccess);
        dataMap.put("ewr", this.expireAfterWrite);

        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        if (value != null) {
            dataMap.put("_c_", value.getClass().getName());
            dataMap.put("v", SerializationUtils.toByteArray(this.value, cl));
        }

        return SerializationUtils.toByteArrayFst(dataMap, cl);
    }
@Override
    public byte[] toBytes() throws SerializationException {
        Map<String, Object> dataMap = new HashMap<>();
        dataMap.put("k", this.key);
        dataMap.put("tac", this.lastAccessTimestampMs);
        dataMap.put("tcr", this.creationTimestampMs);
        dataMap.put("eac", this.expireAfterAccess);
        dataMap.put("ewr", this.expireAfterWrite);

        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        if (value != null) {
            dataMap.put("_c_", value.getClass().getName());
            dataMap.put("v", SerializationUtils.toByteArray(this.value, cl));
        }

        return SerializationUtils.toByteArrayFst(dataMap, cl);
    }
{@inheritDoc}

@since 0.5.0