I see everyone using `DiskLRUCache` that's just co...
# squarelibraries
a
I see everyone using
DiskLRUCache
that's just copied internally to various libraries, is there any good standalone solution that maybe depends on okio?
👍 1
j
2️⃣ 0️⃣ 1️⃣ 6️⃣ https://github.com/JakeWharton/DiskLruCache
I believe OkHttp’s is the best in terms of bugs fixed
In that we’ve fixed bugs since 2016
a
😆
would be great to get that published as a separate library!
bonus points if it is Multiplatform 😉
for now I suppose I'll do what everyone else does, and copy paste it into my project lol
j
You could contribute fixes to the repo above?
Or make your own?
a
ya I might make my own
s
🐕 2
a
oh Kache looks great! I was kinda looking for a drop-in solution for
DiskLRUCache
but this looks more general
c
Coil’s `DiskLruCache` might also be helpful. It builds off of OkHttp’s cache and the version on the
3.x
branch supports multiplatform. Notably it drops support for simultaneous reads and writes to the same entry, though
1
111 Views