@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdle, TimeUnit maxIdleUnit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); return setAsyncInternal(ttl, ttlUnit, maxIdle, maxIdleUnit, key, value); }
@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit timeunit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); return setAsyncInternal(ttl, timeunit, null, null, key, value); }
@Override protected ICompletableFuture<Void> setAsyncInternal(long ttl, TimeUnit timeunit, Long maxIdle, TimeUnit maxIdleUnit, Object key, Object value) { key = toNearCacheKey(key); ICompletableFuture<Void> future; try { future = super.setAsyncInternal(ttl, timeunit, maxIdle, maxIdleUnit, key, value); } finally { invalidateNearCache(key); } return future; }
@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit timeunit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); return setAsyncInternal(ttl, timeunit, null, null, key, value); }
@Override protected ICompletableFuture<Void> setAsyncInternal(long ttl, TimeUnit timeunit, Long maxIdle, TimeUnit maxIdleUnit, Object key, Object value) { key = toNearCacheKey(key); ICompletableFuture<Void> future; try { future = super.setAsyncInternal(ttl, timeunit, maxIdle, maxIdleUnit, key, value); } finally { invalidateNearCache(key); } return future; }
@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdle, TimeUnit maxIdleUnit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); return setAsyncInternal(ttl, ttlUnit, maxIdle, maxIdleUnit, key, value); }