currentBarrel.Empty() doesn't delete files with MonkeyCache.FileStore
See original GitHub issueI have detected that the size of app cache doesn’t change after emptying the keys - so, the files have not been deleted. I think that it can be connected with file attributes, and can be fixed with
File.SetAttributes(destinationFilename, FileAttributes.Normal);
before File.Delete(destinationFilename);
as it is mentioned here
https://stackoverflow.com/questions/45076903/c-sharp-file-delete-doesnt-not-work
Thanks for the MonkeyCache!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
MonkeyCache step by step
MonkeyCache works on the premise that you have exactly one barrel at your disposal, and you throw everything you want to cache into...
Read more >Data Caching Made Simple with Monkey Cache 🐒 for .NET
There is 1 barrel that items get stored in and Monkey Cache provides a singleton method that returns an IBarrel: var currentBarrel =...
Read more >monkey-cache
Easily cache any data structure for a specific amount of time in any .NET application. Monkey Cache is comprised of one core package...
Read more >YSK about MonkeyCache for persistent caching without a ...
YSK about MonkeyCache for persistent caching without a database. It's a simple file-based cache for when you don't need a DB.
Read more >How can I remove deleted files from emacs-projectile's ...
4 Answers. One thing to try would be to make sure you are running projectile-invalidate-cache from the project you want to clear out...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Redth @jamesmontemagno Thousand apologies, I have just realized that the error was in my own code. Thanks again for the MonkeyCache!
Can’t really hurt to add this in its own try/catch block. I’ll do a PR tomorrow.