yuqi1129 opened a new issue, #9148:
URL: https://github.com/apache/gravitino/issues/9148

   ### What would you like to be improved?
   
   Currently, Caffeine entity cace contains three parts: cache data, cache 
index, and the reverse index.  Let's take a simple example. When we cache a 
role entity in the cache
   ```
   cacheData:  role_ident -> roleEntity
   reverseIndex: securable_object1_in_role -> [role_ident]; 
securable_object2_in_role -> [role_ident]
   ```
   
   The problem is that when a role is deleted or dropped, we can't currently 
clear the data in the reverse index.
   
   ### How should we improve?
   
   Keep the mapping from cache data to cache index and clear reverse index if 
needed.


-- 
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]

Reply via email to