Replies: 1 comment
-
Whilst trying an alternative way to invalidate all the
The only way I can get the
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Akavache in an Android app to store some product data and added a "reset catalog" feature to clear down products from the cache before downloading them again.
I add the products (class Product) to the catalog from an API request. DsCatalogProduct is a constant prefix for the key used to store each product, e.g. Product lookup code 123456 will have a key DsCatalogProduct_123456.
After some testing, I noticed products were not being cleared from the cache so added a bit of code. Here is the code I have to clear down the products.
I start with 3023 keys found and after invalidating, flush and vacuum I still have 3023 keys. Is there a better way to clear the product objects from the cache?
Using akavache 9.0.1 and akavache.splite3 9.0.1
Beta Was this translation helpful? Give feedback.
All reactions