Registry / utility / expiringmap

expiringmap

JSON →
library0.5.11javamavenunverified

High-performance thread-safe map that automatically expires entries after a configurable time.

<dependency> <groupId>net.jodah</groupId> <artifactId>expiringmap</artifactId> <version>0.5.11</version> </dependency>
INSTALL
IMPORT
SIG · EXPIRINGMAP
E
expiringmap
utilityjavav0.5.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ExpiringMap
net.jodah.expiringmap.ExpiringMap

Creates an expiring cache with 10-second TTL.

import net.jodah.expiringmap.ExpiringMap; import java.util.concurrent.TimeUnit; public class CacheExample { public static void main(String[] args) { ExpiringMap<String, String> map = ExpiringMap.builder() .expiration(10, TimeUnit.SECONDS) .build(); map.put("key", "value"); System.out.println(map.get("key")); // value (if within 10s) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.11latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
expiringmap — mvn dependency:get expiringmap · libregistry