Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query with different keys #31

Open
cemo opened this issue May 3, 2020 · 1 comment
Open

Query with different keys #31

cemo opened this issue May 3, 2020 · 1 comment

Comments

@cemo
Copy link

cemo commented May 3, 2020

I really love Kafka Cache. We have been using it with processors but we want to switch to your library. We have items around thousands and holding them as a key and value our in memory caches. However there are some cases we need to query not only by id also by other keys. Would you please add such a feature to query by other way.
For example we have around 1000 shops. We can query them by id with your library but we would like to query by name too.
Thanks

@rayokota
Copy link
Owner

rayokota commented May 3, 2020

Thanks @cemo . Right now one way to achieve this is to pass an implementation of CacheUpdateHandler (to the KafkaCache constructor) that updates auxiliary data structures such as indexes keyed by other properties. Perhaps you can see if this works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants