moka

A high performance concurrent caching library for Rust

21 articles 2.4k View on GitHub ↗
21 articles
Moka Cache Lookup Performance: How the Lock-Free Design Achieves O(1) Speed

Discover Moka cache lookup performance advantages. Its lock-free design achieves O(1) speed with atomic operations and epoch-based memory management for sub-nanosecond read overhead.

performance
Mar 7, 2026
Moka Weigher Closure Usage: Configuring Size-Aware Caching in Rust

Learn how to use Moka weigher closures in Rust to configure size-aware caching. Assign custom weights to entries for memory bounds instead of entry counts.

how-to-guide
Mar 7, 2026
Moka Integration with async-std: A Complete Runtime Guide

Integrate Moka's async cache with async-std easily. Learn how to leverage runtime-agnostic Futures for seamless caching in your Rust applications.

tutorial
Mar 7, 2026
Moka Integration with Tokio: A Complete Guide to Async Caching

Learn Moka integration with Tokio. Discover how to use moka::future::Cache for efficient async caching without Tokio specific dependencies. Unlock high performance.

tutorial
Mar 7, 2026
Moka Cache Value Types Supported: Trait Bounds and Generic Constraints Explained

Explore Moka cache value types supported including trait bounds and generic constraints. Store any Clone Send Sync 'static type safely in your cache.

documentation
Mar 7, 2026
Moka Cache Key Types Supported: Trait Bounds and Examples

Explore Moka cache key types. Moka supports Hash Eq Send Sync 'static keys without requiring Clone for efficient Rust caching.

api-reference
Mar 7, 2026
How to Clone a Moka Cache in Rust: Thread-Safe Sharing Explained

Learn how to clone a Moka cache in Rust using simple O(1) operations. Share thread-safe cache handles efficiently without copying data.

how-to-guide
Mar 7, 2026
When to Use Sync vs Async Moka Cache: Complete API Guide

Discover when to use sync vs async Moka cache for your Rust applications. Learn how to leverage blocking or async runtimes with identical performance guarantees.

api-reference
Mar 7, 2026
Cache-Aside Pattern with Moka: A Complete Rust Implementation Guide

Implement the cache-aside pattern in Rust with Moka. Learn to use get_with for single-flight data loading and thundering-herd protection during cache misses.

how-to-guide
Mar 7, 2026
Moka Snapshot Restore Feature: Architecture and Implementation Guide

Explore the Moka snapshot restore feature architecture and implementation for robust cache persistence. Learn how to overcome complex challenges like timer wheel consistency and shard hashing.

architecture
Mar 7, 2026
Moka Cache Hit Rate Statistics: Measuring Cache Performance in Real Time

Discover how to calculate Moka cache hit rate statistics by combining debug counters and TinyLFU data with manual instrumentation for real time performance measurement.

performance
Mar 7, 2026
Moka Cache Performance Tuning: Optimizing Builder Configuration for High-Concurrency Rust Workloads

Optimize Moka cache performance in Rust. Tune CacheBuilder settings for high concurrency, reducing contention and memory pressure with segmented tables, fast hashers, and aggressive housekeeping.

performance
Mar 7, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →