yuqi1129 opened a new pull request, #10775: URL: https://github.com/apache/gravitino/pull/10775
> **Stacked PR** — depends on #10774. Please review/merge that PR first. ### What changes were proposed in this pull request? - Add `GravitinoCache<K,V>` interface (`getIfPresent`, `put`, `invalidate`, `invalidateAll`, `size`, `close`) - Add `CaffeineGravitinoCache<K,V>` — Caffeine-backed implementation with configurable TTL, max-size, and optional removal listener - Add `NoOpsGravitinoCache<K,V>` — no-op implementation used when caching is disabled - Add cache config keys to `Configs.java` (max size, expiration seconds) - Extend `AuthorizationRequestContext` with per-request owner and user version caches ### Why are the changes needed? Provides the caching infrastructure (PR 2 of 3) consumed by the refactored `JcasbinAuthorizer` in PR #10772. Fix: #10771 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? `TestGravitinoCache` covers all `CaffeineGravitinoCache` and `NoOpsGravitinoCache` behaviours including put/get, invalidate, size, overwrite, and removal listener firing. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
