protected void refreshTTL(String key, CacheEntry ce) {
    """
	Refresh TTL of a cache entry.
	
	@param key
	@param ce
	@since 0.6.2
    """
        final String KEY = calcCacheKey(key);
        final long TTL = ce.getExpireAfterAccess();
        try (ShardedJedis jedis = getJedis()) {
            if (TTL > 0) {
                if (keyMode == KeyMode.HASH) {
                    jedis.expire(getName(), (int) TTL);
                } else {
                    jedis.expire(SafeEncoder.encode(KEY), (int) TTL);
                }
            }
        } catch (Exception e) {
            throw e instanceof CacheException ? (CacheException) e : new CacheException(e);
        }
    }
protected void refreshTTL(String key, CacheEntry ce) {
        final String KEY = calcCacheKey(key);
        final long TTL = ce.getExpireAfterAccess();
        try (ShardedJedis jedis = getJedis()) {
            if (TTL > 0) {
                if (keyMode == KeyMode.HASH) {
                    jedis.expire(getName(), (int) TTL);
                } else {
                    jedis.expire(SafeEncoder.encode(KEY), (int) TTL);
                }
            }
        } catch (Exception e) {
            throw e instanceof CacheException ? (CacheException) e : new CacheException(e);
        }
    }
protected void refreshTTL ( String key , CacheEntry ce ) { final String KEY = calcCacheKey ( key ) ; final long TTL = ce . getExpireAfterAccess ( ) ; try ( ShardedJedis jedis = getJedis ( ) ) { if ( TTL > 0 ) { if ( keyMode == KeyMode . HASH ) { jedis . expire ( getName ( ) , ( int ) TTL ) ; } else { jedis . expire ( SafeEncoder . encode ( KEY ) , ( int ) TTL ) ; } } } catch ( Exception e ) { throw e instanceof CacheException ? ( CacheException ) e : new CacheException ( e ) ; } }
Refresh TTL of a cache entry.

@param key
@param ce
@since 0.6.2
Refresh TTL of a cache entry .