1 repository
Java libraries that implement disk-backed caches with atomic read and write operations.
Distinct from Java Utility Libraries: Distinct from Java Utility Libraries: focuses specifically on disk-backed caching rather than general utilities.
Explore 1 awesome GitHub repository matching programming languages & runtimes · Disk-Backed Caches. Refine with filters or upvote what's useful.
DiskLruCache is a disk-backed key-value cache library for Android and Java environments that stores data on the filesystem within a configurable byte limit. It uses a least-recently-used (LRU) eviction policy to automatically remove old entries when the cache exceeds its allocated size, and maintains a journal file to reconstruct its in-memory state after a process restart. The cache provides atomic write operations that first write new data to a temporary file before atomically renaming it, preventing partial or corrupted reads during concurrent access. It returns frozen snapshots of cache e
Provides a Java implementation of a disk-backed cache with atomic read and write operations.