Hello! I am looking for some cache library develop...
# server
t
Hello! I am looking for some cache library developed in Kotlin Any suggestions?
e
It needs to be developed in Kotlin or you mean a library that can be used in Kotlin?
t
Needs to be developed in Kotlin
d
https://github.com/dropbox/Store You can try this and see if it fits your requirements
👍🏾 2
n
Can I ask why it needs to be developed in kotlin? Out of curiousity?
👀 1
t
Yes, just out of curiosity. For JVM I know cache2k, caffeine, guava
m
@deactivateduser Dropbox Store looks way more than a cache… seems a kind of Repository Pattern implementation that manages data fetching over the network and caches it. Anyway, seems to be a nice lib.
@Tiago Brito here’s a cache lib written in Kotlin https://github.com/appmattus/layercache
w
looks android specific 🤔
☝🏾 2
m
No it’s not Android specific, read carefully: there’s a base module and an optional
layercache-android
module that you can add to dependencies. Anyway @Tiago Brito, apart from your curiosity, I would advise to use Caffeine or similar, as they are state of the art in caching implementation on the JVM and no 100% Kotlin lib is on feature par with that yet. If you need something more manageable, you could use tekniq-cache , which is a Kotlin wrapper around Caffeine.
👍 2
f
I believe okhttp v3 has been entirely ported to kotlin. It's from square which means pretty much revered and used by virtually any android dev. https://square.github.io/okhttp/
m
OkHttp is an HTTP client, we were discussing about caches here… 🙂
685 Views