docs: drop moka, update cache docs for PortableCache (whatsapp-rust#860) - #327
Conversation
- Remove `moka-cache` feature from installation guides and stable-Rust code examples (feature no longer exists) - Replace all moka references with PortableCache throughout storage and custom-backends docs; rename `TypedCache::from_moka` → `from_local` - Update PortableCache section to reflect it is now the sole in-process cache backend on every target (not a WASM-only fallback) - Document new PortableCache capabilities: monotonic TTL/TTI, eager init-lock reclamation, reliable async clear(), snapshot_entries() - Add changelog entry for PR #860 including binary size impact table and breaking-change migration guide https://claude.ai/code/session_01BkboFWXpkvp9HyHs1t4djA
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Warning Review limit reached
More reviews will be available in 51 minutes and 6 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: deec116f3b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Address Codex review findings: - pt/installation.mdx: remove moka-cache feature from stable-Rust examples and feature flags table (matches en/installation.mdx fix) - api/store.mdx: update TypedCache docs — from_moka → from_local, update method table descriptions for in-process vs custom-store path - api/bot.mdx: replace "default in-process moka behavior" reference - advanced/state-management.mdx: replace moka Cache ref with PortableCache; update chat_lanes clear() semantics - advanced/signal-protocol.mdx: replace two moka references with PortableCache (SenderKeyDeviceCache coalescing, session_recreate_history) https://claude.ai/code/session_01BkboFWXpkvp9HyHs1t4djA
Summary
Follows whatsapp-rust#860, which removes the
mokadependency and makesPortableCachethe sole in-process cache backend on every target.installation.mdx— Removemoka-cachefeature from all code examples and the feature-flags table (feature no longer exists)concepts/storage.mdx— Replace all moka references with PortableCache; update PortableCache section to describe it as the sole backend (not a WASM-only fallback); document new capabilities (monotonic TTL/TTI, eager init-lock reclamation,clear(),snapshot_entries()); updateTypedCache::from_moka→from_localin examples; update mermaid diagramguides/custom-backends.mdx— Minor reference updates in the custom cache store sectionchangelog/2026-06-14-drop-moka-portable-cache.mdx— New changelog entry with binary size table and breaking-change migration guidedocs.json— Register new changelog pageTest plan
mokaormoka-cachereferences remain in updated filesmoka-cachehttps://claude.ai/code/session_01BkboFWXpkvp9HyHs1t4djA
Generated by Claude Code
Summary by cubic
Updates the docs to remove
mokaand documentPortableCacheas the sole in-process cache backend. Cleans up remaining references in API docs and the pt locale, and adds a changelog with size impact and a migration guide.New Features
PortableCacheas the default on all targets (incl. wasm32) with single-flightget_with.clear(), andsnapshot_entries().TypedCachedocs:from_localreplacesfrom_moka; clarifiedinvalidate_all(best-effort) vsclear(awaited) andrun_pending_tasks(in-process only).clear()on reconnect), signal-protocol (single-flight), custom-backends, API pages, andpt/installation.mdx. Removedmoka-cachefrom feature tables and examples.Migration
moka-cachefeature from yourCargo.toml.TypedCache::from_mokatoTypedCache::from_local.cfggating for theportable_cachemodule (it is now always available).Written for commit c8d264c. Summary will update on new commits.