public void write(MarshalledEntry entry) throws PersistenceException {
if (log.isTraceEnabled()) {
log.tracef("Adding entry: %s", entry);
}
InternalMetadata metadata = entry.getMetadata();
long lifespan = metadata != null ? metadata.lifespan() : -1;
long maxIdle = metadata != null ? metadata.maxIdle() : -1;
remoteCache.put(entry.getKey(), configuration.rawValues() ? entry.getValue() : entry, toSeconds(lifespan, entry.getKey(), LIFESPAN), TimeUnit.SECONDS, toSeconds(maxIdle, entry.getKey(), MAXIDLE), TimeUnit.SECONDS);
}
@Override