code: @Override
      public void set(String key, Object entry, long expireAfterWrite, long expireAfterAccess) {
          if (!(entry instanceof CacheEntry)) {
              CacheEntry ce = new CacheEntry(key, CacheUtils.tryClone(entry), expireAfterWrite,
                      expireAfterAccess);
              entry = ce;
          } else {
              entry = CacheUtils.tryClone(entry);
          }
          cache.put(key, entry);
      }
docs: {@inheritDoc}