@Override
    public <T> void put(String cacheKey, T jsonObject, long timeToLive) throws IOException {
        synchronized (mutex) {
            InfinispanCacheEntry entry = (InfinispanCacheEntry) getCache().get(cacheKey);
            if (entry == null) {
                entry = new InfinispanCacheEntry();
            }
            entry.setHead(jsonObject);
            entry.setExpiresOn(System.currentTimeMillis() + (timeToLive * 1000));
            getCache().put(cacheKey, entry);
        }
    }
@ Override public < T > void put ( String cacheKey , T jsonObject , long timeToLive ) throws IOException { synchronized ( mutex ) { InfinispanCacheEntry entry = ( InfinispanCacheEntry ) getCache ( ) . get ( cacheKey ) ; if ( entry == null ) { entry = new InfinispanCacheEntry ( ) ; } entry . setHead ( jsonObject ) ; entry . setExpiresOn ( System . currentTimeMillis ( ) + ( timeToLive * 1000 ) ) ; getCache ( ) . put ( cacheKey , entry ) ; } }
@see io.apiman.gateway.engine.components.ICacheStoreComponent#put(java.lang.String, java.lang.Object, long)