Skip to content
Open access

Caching with Monotonicity and Consistency

Sep 2026 · ACM Transactions on Database Systems · 0 citations · 29 references

Abstract

We propose monotonic consistent caching (MCC), a cache scheme for applications that demand transactional guarantees. MCC warrants that a transaction-like request always sees a consistent view of the backend database and that observed writes over the cache will not be lost, even if it operates on conventional cache systems, e.g., Memcached or Redis, that come without such guarantees. Unlike traditional caching which is trivially in Ptime under the offline (batch) model where requests are known in advance, we show that the complexity of MCC ranges from Ptime to Np-Complete, depending on the version selection strategy in case of cache hits that violate transactional guarantees. We characterize MCC via a notion of obsolete items, based on which we abstract a principle for designing competitive MCC policies. By applying the principle, we develop optimal and approximate MCC policies for the batch model, where requests in a batch are known in advance. For the online and semi-online models, we develop ML-augmented policies that benefit from blackbox ML models for classifying obsolete items, while being provably competitive even if the ML is arbitrarily bad. We further implement a pluggable system that supports all proposed MCC policies. Using benchmark and real-life traces, we show that MCC policies reduce 34.9% of database reads for Redis atop HBase and improve their throughput by 59.1%.

Read PDF

Similar papers

Preprint Aug 2026

CacheRoute: Planned Prefix-Affinity Routing for Large-Scale LLM Serving

When affinity recovers too little KV work, its residual load skew reduces or erases the improvement, so gating any deployment with a shadow replay rather than enabling affinity from workload statistics alone is recommended.

Huang Cheng · 1 citation
#artificial intelligence Preprint Oct 2026

Request Order Matters: Cache-History Sensitivity in Selective KV-Cache Reuse for Rolling Agents

Long-running agents repeatedly call an LLM while retaining most of their document window, evicting old documents, and appending new ones. These rolling updates break exact prefix caching and motivate non-prefix KV-cache reuse with selective recomputation. We show that persistent KV-cache reuse with selective recomputat...

Tiffany Gu, An-Nie Guan, Man-Shu Huang et al. · 0 citations
#machine learning Preprint Oct 2026

Exact Memory-Time Optimization for Prefix-Cached Language Model Serving

Retaining language-model prefix states trades recomputation against storage time. Optimizing each cached block independently can overcount savings: a resident block is usable only when the required preceding prefix is also available. We introduce Prefix-Certificate Retention (PCR), an exact finite-trace formulation for...

Shivam Gupta · 0 citations
Preprint Aug 2026

Which Eviction Policy Should an LLM Cache Use? A Systematic Study Across Workloads, Capacities, and Encoders

The cross-encoder study shows that thresholds do not transfer between embedding models, and LFU is the strongest simple default in this protocol; deployment decisions should first establish answer validity and then test sub-point policy differences with exact search.

Y. Kulkarni, Shubham Harkare, A. Babu · 0 citations
#artificial intelligence Preprint Sep 2026

CADOC: Cache-Aware Dynamic Object Context for Long-Horizon Agents

CADOC (Cache-Aware Dynamic Object Context), an online algorithm that replaces structured objects with compact Cards while preserving exact, on-demand retrieval of their original contents, is proposed, demonstrating that efficient compression depends not only on shortening prompts but also on scheduling edits to preserv...

Jun-Jie Yao, Zhang-Chen Zhou, Zhi-qin John Xu · 0 citations
#machine learning Preprint Sep 2026

No-Regret Mixing of LRU and LFU with Optimal Switching Cost

This work shows that LeCar suffers linear regret against an oblivious adversary, even with unbounded history, and proposes H-MC, a Hedge-based mixture of virtual LRU and LFU caches that preserves Hedge's selection probabilities, and hence its regret guarantees, while minimizing the switching cost among all joint select...

Younes Ben Mazziane, Xin-Ying Zou · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.