Repository navigation
feat(cache): add invalidateCache() and .invalidate() - #8
Conversation
…he invalidation Adds first-class cache invalidation API — both a standalone `invalidateCache()` helper and an `.invalidate(...args)` method on cached functions. Resolves keys via existing `resolveCacheKeys` and deletes entries across all base prefixes via `storage.set(key, null)`.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
Summary
invalidateCache({ options, args })standalone helper to remove cached entries across all base prefixes.invalidate(...args)method onCachedFunction(same ergonomics as.resolveKeys())resolveCacheKeysand delete viastorage.set(key, null)Addresses upstream Nitro issues:
Usage
Test plan
invalidateCacheworks with same options