Registry / utility / hutool-cache

hutool-cache

JSON →
library5.8.45javamavenunverified

Hutool caching module providing various cache implementations.

<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-cache</artifactId> <version>5.8.45</version> </dependency>
INSTALL
IMPORT
SIG · HUTOOL-CACHE
H
hutool-cache
utilityjavav5.8.45
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.

CacheUtil
cn.hutool.cache.CacheUtil

Creates a FIFO cache with capacity 10 and stores/retrieves a value.

import cn.hutool.cache.CacheUtil; import cn.hutool.cache.impl.FIFOCache; public class Example { public static void main(String[] args) { FIFOCache<String, String> cache = CacheUtil.newFIFOCache(10); cache.put("key", "value"); System.out.println(cache.get("key")); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.8.45latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
hutool-cache — mvn dependency:get hutool-cache · libregistry