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

Provide typed LRU cache for field values #40

Open
ak0rz opened this issue Feb 6, 2019 · 2 comments
Open

Provide typed LRU cache for field values #40

ak0rz opened this issue Feb 6, 2019 · 2 comments

Comments

@ak0rz
Copy link
Contributor

ak0rz commented Feb 6, 2019

Sometimes we store something heavy in stored fields that need additional complex conversion.
Maybe we can provide an implementation for Database that would allow us to cache some work done by some Function<Buffer, T> and return T immediately.

@incubos
Copy link
Contributor

incubos commented Mar 13, 2019

It looks like an independent component.
Can you please provide a clarifying example or use case?

@ak0rz
Copy link
Contributor Author

ak0rz commented Mar 13, 2019

It looks like an independent component.
Can you please provide a clarifying example or use case?

Sometimes deserialization of a field is very expensive on a high-load service and it is handy to have deserialized values of the document being cached for hot documents (or even all of them).

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

No branches or pull requests

2 participants