You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to remove a Website from the Cache using Fuse.stringCache.remove(url)
url is the String of the Website I used to download.
However when using it like so I get the following Exception:
java.lang.IllegalArgumentException: keys must match regex [a-z0-9_-]{1,64}: "https://www.wired.com/2017/11/gifts-for-the-apple-iphone-lover/"
at com.jakewharton.disklrucache.DiskLruCache.validateKey(DiskLruCache.java:660)
at com.jakewharton.disklrucache.DiskLruCache.remove(DiskLruCache.java:581)
at com.github.kittinunf.fuse.core.cache.DiskCache.remove(DiskCache.kt:40)
at com.github.kittinunf.fuse.core.Cache.remove(Cache.kt:113)
at com.github.kittinunf.fuse.core.Cache.remove$default(Cache.kt:110)
What I tried:
Matching the url to the Regex - did not work as it is not the key
Calling it using Fuse.stringCache.remove(URL(url).toString()) also not finding the Item to remove
What worked was Fuse.stringCache.remove(url.md5()). Is that the way it is supposed to work?
Edit: This did not remove the Value from the Cache
Maybe adding a function to remove Items by URL similar to the get function would be a consideration?
The text was updated successfully, but these errors were encountered:
Tried a bit more. The URL seems to be the right key as I get the Data when I call it with get. However using it with remove() produces the IllegalArgumentException with the wrong regex
Trying to remove a Website from the Cache using
Fuse.stringCache.remove(url)
url is the String of the Website I used to download.
However when using it like so I get the following Exception:
What I tried:
Fuse.stringCache.remove(URL(url).toString())
also not finding the Item to removeWhat worked wasFuse.stringCache.remove(url.md5())
. Is that the way it is supposed to work?Edit: This did not remove the Value from the Cache
Maybe adding a function to remove Items by URL similar to the get function would be a consideration?
The text was updated successfully, but these errors were encountered: