@Override
    public <T> void put(String cacheKey, T jsonObject, long timeToLive) throws IOException {
        final CacheEntry entry = new CacheEntry();
        entry.setData(null);
        entry.setExpiresOn(System.currentTimeMillis() + (timeToLive * 1000));
        entry.setHead(JSON_MAPPER.writeValueAsString(jsonObject));
        try {
            getStore().put(cacheKey, entry, timeToLive);
        } catch (Throwable e) {
            LOGGER.error(e, "Error writing cache entry with key: {}", cacheKey);
        }
    }
@see ICacheStoreComponent#put(String, Object, long)
gateway/engine/storage-common/src/main/java/io/apiman/gateway/engine/storage/component/AbstractCacheStoreComponent.java