expiringmap icon indicating copy to clipboard operation
expiringmap copied to clipboard

A high performance thread-safe map that expires entries

Results 42 expiringmap issues
Sort by recently updated
recently updated
newest added

``` expiringMap.put("a", "a", 1000, TimeUnit.MILLISECONDS); expiringMap.put("a", "a", 20_000, TimeUnit.MILLISECONDS); Thread.sleep(5000); System.out.println(expiringMap.get("a")); // output null ``` Is this expected behavior? Can't I refresh ```ttl``` of this key?

I need to use an expiring map with a default expiration. It caches the data fetched from a remote server. If the device is offline, then it's storing the null...

Hello, I noticed an older issue reporting ConcurrentModificationException, and found the issue is still occurring in 0.4.2. I tried keyset and entrySet. ``` java java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:350) at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:379) at...

Create a copy of the entries (guarded by a readLock) and iterate over that copy. This fixes #10 and maybe #30 (needs further testing though, couldn't reproduce that) Create a...

Proper cleanup of resource, avoid problems e.g. on Tomcat undeploy, which currently generates: ``` org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [w2s] appears to have started a thread named [ExpiringMap-Expirer] but has failed...

community-feedback-wanted

We experienced situation were the ExpiringMap returned an expired entry after ExpirationListener was already notified that this specific entry was expired. The map is configured with the policy `ExpirationPolicy.ACCESSED` (version...

```java import net.jodah.expiringmap.ExpirationPolicy; import net.jodah.expiringmap.ExpiringMap; import java.util.Map; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { Data data = new Data();...

I am trying to use listeners , I have very simple code, `map = ExpiringMap.builder() .variableExpiration() .build(); TokenGen t1= new T1("T1","m1","m2"); map.put("T1",t1, ExpirationPolicy.CREATED, 20, TimeUnit.SECONDS); TokenGen t2= new T2("T2","m1","m2","m3"); map.put("T2",t2,...

[Caching Dependencies and Directories](https://docs.travis-ci.com/user/caching/) Travis CI can cache content that does not often change, to speed up the build process. ===================== If there are any inappropriate modifications in this PR,...

https://github.blog/2020-06-01-keep-all-your-packages-up-to-date-with-dependabot/