Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#112: Cache trimmed only after cache hits #114

Closed
wants to merge 1 commit into from

Conversation

anuvakkachen
Copy link

Added a new Callable - TrimCallable which only trims cache and not modify last accessed time of file since for cache misses last access time need not be modified manually but will be set automatically after file is fully cached. Used this callable to trim cache when a file is fully cached (100% content available)

@danikula
Copy link
Owner

danikula commented Feb 8, 2017

@anuvakkachen Thanks for PR. I gonna take a look soon.

@anuvakkachen
Copy link
Author

Thanks @danikula

@danikula
Copy link
Owner

@anuvakkachen , looks good. Can you add unit tests to proof this code works as expected?

@anuvakkachen
Copy link
Author

@danikula Yes. I can do that.

@danikula danikula changed the title Fix for Bug-112 - Cache trimmed only after cache hits #112: Cache trimmed only after cache hits Apr 21, 2017
@danikula
Copy link
Owner

#112

@danikula
Copy link
Owner

@anuvakkachen File cache is trimmed every time file is closed. It happen every client disconnection. So library works as expected. These tests proofs it. Also I've played with sample app and didn't notice any unexpected behaviour. So have to close your issue & pr. If you can proof that library's cache works incorrectly, please do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants