Skip to content

Generating index key for CacheInvalidationService markKeyAsExpiredInIndexStore #3512

Answered by porunov
jekramer asked this question in Q&A
Discussion options

You must be logged in to vote

If I only know the vertex id that I want to be cleared from the index store, is it currently possible to generate relevant index keys? If so, how can I do that?

No, it's not possible to generate index keys knowing only vertex or edge id. Instead you need to know properties and their values which you want to expire in the index store.
I guess it could be possible to scan all index store values and invalidate related keys, but that would require quite a long scanning (depending on the index store size). Thus, I wasn't taking effort to implement that.
Instead you could call clearIndexStoreCache() as for now to fully invalidate all index store keys.

You can check a test method to see an exa…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@porunov
Comment options

@porunov
Comment options

@jekramer
Comment options

@porunov
Comment options

@jekramer
Comment options

Answer selected by porunov
Comment options

You must be logged in to vote
1 reply
@jekramer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants