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 main features of jakewharton/disklrucache are: Bounded Disk Cache Allocations, Strongly Consistent Cache Reads, Disk-Backed Implementations, General Purpose Disk Caches, Bounded Disk Key-Value Stores, Key-Value Persistence Stores, Cache Snapshot Isolations, Entry Versioning Guards.
Open-source alternatives to jakewharton/disklrucache include: isaacs/node-lru-cache — node-lru-cache is a key-value store for Node.js that implements a memory-limited cache. It prevents memory exhaustion… grantjenks/python-diskcache — This project is a disk-backed key-value store and persistent data structure library for Python. It provides a… danikula/androidvideocache — AndroidVideoCache is a local proxy server and disk-based media cache for Android. It intercepts network requests to… mahmoud/boltons — Boltons is a comprehensive utility toolkit and extension of the Python standard library. It provides a collection of… hashicorp/golang-lru — This is a thread-safe in-memory cache library for Go that automatically evicts the least recently used items when… rosedblabs/rosedb — RoseDB is a persistent key-value database and log-structured storage engine. It functions as a lightweight storage…
node-lru-cache is a key-value store for Node.js that implements a memory-limited cache. It prevents memory exhaustion by capping the total number of items or total byte size, automatically evicting the least-recently-used items to maintain these limits. The project provides specialized caching patterns, including time-to-live durations to ensure data freshness and a stale-while-revalidate mechanism that serves expired content while asynchronously fetching updates in the background. It also includes diagnostic tools for monitoring cache hits, misses, and eviction metrics through operational st
This project is a disk-backed key-value store and persistent data structure library for Python. It provides a mechanism for persisting mappings, sets, and queues to the local filesystem to bypass memory limitations and cache expensive function results across threads and processes. The system serves as a cross-process synchronization tool, offering distributed locks, semaphores, and barriers to coordinate shared resource access. It implements advanced caching strategies such as probabilistic stampede prevention, sharded data partitioning to increase throughput, and least-recently-used eviction
AndroidVideoCache is a local proxy server and disk-based media cache for Android. It intercepts network requests to store streamed video data on the local file system, allowing for offline playback and reduced data usage. The project differentiates itself by functioning as an HTTP proxy cache that can inject custom request headers. This enables the delivery of authenticated video content by satisfying server-side security and authentication requirements during the caching process. The system manages storage through byte-level disk caching, URL-to-file mapping, and the enforcement of storage
Boltons is a comprehensive utility toolkit and extension of the Python standard library. It provides a collection of reusable recipes and specialized data structures, system utilities, and helper libraries designed to support common programming tasks across various domains. The project is distinguished by a standard-library-only dependency model, ensuring maximum portability with zero external dependencies. It provides advanced implementations for data structures, such as immutable mappings and priority queues, alongside recursive data transformation tools for reshaping complex nested diction