CoroutinesCache
CoroutinesCache copied to clipboard
In mobile development exists solution for caching with RxJava usage, but there is no solutions for Kotlin Coroutines. The project is to provide this functionality to mobile community.
Need functionality to force cache cleanup when it required. For example update list of "articles" via external command (i.e. PUSH message)
Steps to reproduce: 1. Take Retrofit, create any api definition 2. Create retrofit service and call it from launch/async 3. Ensure the errors are catched in try/catch block 4. Add...
Hi I used this library, and I have runtime exception with this stack trace ``` Caused by: org.koin.core.error.NoBeanDefFoundException: Found multiple definitions for type 'com.epam.coroutinecache.core.Persistence': [[type:Single,name:'DiskCache', primary_type:'com.epam.coroutinecache.core.DiskCache', secondary_type:com.epam.coroutinecache.core.Persistence], [type:Single,name:'DiskCache', primary_type:'com.epam.coroutinecache.core.DiskCache', secondary_type:com.epam.coroutinecache.core.Persistence]]....
Just some cleans to existence code.
Currently the coroutine cache isn't very smart about concurrent requests: So if we use your readme example but modify it to perform multiple requests concurrently: ```kotlin class MainActivity : AppCompatActivity()...
CoroutinesCache has a CoroutineScope parameter. Cache operations should be scoped, not entire cache. In most cases, cache is a singleton and we create it once per app lifetime since initialization...
Hi, Great library, I had a brief look into the source code, here are some of my thoughts: **Dependencies** ``` implementation 'com.google.code.gson:gson:2.8.5' implementation 'com.squareup.moshi:moshi:1.6.0' implementation 'com.fasterxml.jackson.core:jackson-core:2.9.6' implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.6' ``` Not...
Would be nice to be able to save some android data structures like Bitmap.
### Dependencies > implementation 'com.google.code.gson:gson:2.8.5' > implementation 'com.squareup.moshi:moshi:1.6.0' > implementation 'com.fasterxml.jackson.core:jackson-core:2.9.6' > implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.6' Not everyone is happy by bringing unnecessary dependencies, better to put them as separate libraries. E.g....
The client may want to check if the content is still actual without requesting the whole update(just check for the version or timestamp, etc.). The library should support accepting a...