-
Notifications
You must be signed in to change notification settings - Fork 36
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
Introduce a cache storage SPI #67
Comments
For this one, my current thought is this: interface Cache {
Future<Void> put(String key, String value);
Future<String> get(String key);
Future<Void> remove(String key);
Future<Void> removeEldest();
Future<Integer> size();
} Here I use Another thing I'm worrying about is whether the output parameter should be wrapped with |
I think the
What do you mean with encoding/decoding? What would be the benefit?
Indeed, we should consider every operation on the cache may be asynchronous (not only for Redis, we could imagine an implementation with Infinispan, Hazelcast, ... etc). |
The encoding/decoding refers to how to transform data between |
We don't have any other choice than caching the Regarding how to convert this to bytes or vert.x |
When the cache is enabled, cached content is stored on heap memory.
Users should be able to choose between different storage implementations.
The text was updated successfully, but these errors were encountered: