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
{{ message }}
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
I'd like to use getRefreshing() and clear(). However, FileSystemPersister doesn't implement Clearable. How can I bust the cache of the FileSystemPersister while still utilizing a timed cache and networkBeforeStale()?
The readme section about SourcePerster and FileSystem make it seem like this is supposed to be working. Am I missing something?
The text was updated successfully, but these errors were encountered:
You are correct, the FileSystemPersisterFactory is a convenience factory for common persisters. If you'd like a persister that implements Clearable you would have to implement that yourself. You can take a look at the persister that is generated by the factory as a starting point and then add the Clearable interface to it
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm currently using the
FileSystemPersister
setup like this:FileSystemPersisterFactory.create( cache, pathResolver, 1, TimeUnit.HOURS )
I'd like to use
getRefreshing()
andclear()
. However,FileSystemPersister
doesn't implementClearable
. How can I bust the cache of theFileSystemPersister
while still utilizing a timed cache andnetworkBeforeStale()
?The readme section about SourcePerster and FileSystem make it seem like this is supposed to be working. Am I missing something?
The text was updated successfully, but these errors were encountered: