question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

currentBarrel.Empty() doesn't delete files with MonkeyCache.FileStore

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
virsannacommented, Nov 30, 2019

@Redth @jamesmontemagno Thousand apologies, I have just realized that the error was in my own code. Thanks again for the MonkeyCache!

1reaction
Redthcommented, Oct 18, 2019

Can’t really hurt to add this in its own try/catch block. I’ll do a PR tomorrow.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found