title: Google Guava Cache - Change the eviction timeout values during run time
body: <p>I am using the following:</p>
  
  <pre><code>LoadingCache&lt;String, Long&gt; inQueueLoadingCache = CacheBuilder.newBuilder()
      .expireAfterWrite(120, TimeUnit.SECONDS)
      .removalListener(inQueueRemovalListener)
      .build(inQueueCacheLoader);
  </code></pre>
  
  <p>After every 120 seconds, the cache entries are evicted and it works as expected.</p>
  
  <p>My question is: How do I change the timeout value, say from 120 to 60 seconds, for the current cache? What will happen to the cache entries during this change?</p>