-
Notifications
You must be signed in to change notification settings - Fork 15
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
Divide cache wrappers to api and implementation #7
Comments
What's the context for this change ? |
Actually it is the best practice for all public shared code 🙂 Dividing makes able to use kotlin's interface delegation e.g class SharedCache<K, V>(impl: CacheWrapper<K, V>) : CacheWrapper<K, V> by impl, AnotherInterface |
Also after this changes both wrappers will be acceptable for wildcards. Since they implements single parent interface |
I'm not really a fan of interfaces where they are not needed. You can easily test code using the caeffine builder, since it's in memory, so the "mock" use case isn't needed. What else is having an interface buying us? |
No description provided.
The text was updated successfully, but these errors were encountered: