-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature: CacheMap #11
Conversation
- Created module
- Added new enum with members `LIVE` and `ON_ACCESS`
If we do a trivial on access we scale badly with Time based feels right, but it would have to be bounded surely by min time, and that is complicated. Or well, maybe relative to everything else, time "freezes" and unfreezes when we traverse, it's really LRU we care about than the strict time value I guess. |
Okay maar ek suip lekker nou 🍺 |
Okay, maar I have on-access working now it seems, for |
- Fixed unit test
Unit test is gucci ✔️ |
Added delegate support ✔️ |
- Documented module
- Added import
Documentation ✔️ |
- Explcitiyl set time
- Added a test ofkey removal (explicit)
- Destroy map
- Added missing documentation
Added explicit key removal ✔️ |
Explicit key removal works ✔️ |
- Removed old code
Threaded expiration ✔️ |
- Cleaned up
No tests yet for on-access expiration |
Adding sweep interval customization... |
Adding on-acces unittest |
- Fixed the constructor which takes in a `ReplacementFunction` to pass in the default arguments as well - The `checkerFunc` now uses the `sweepInterval` - Added support for a `sweepInterval` which the checker runs at now (seperate to the `expirationTime`) CacheMap (unittest) - Documented more unittests - Added a unit test for on-access stratergy testing
Done ✔️ |
Done ✔️ |
- Cleaned up imports
Okay, this is all done - will be merging now |
Added more docs |
Done, merging... |
Merged ✔️ |
Purpose ✍️
Add support for a
CacheMap
and aCacheList
.Todo
CacheMap
CacheList
Alive strat.On-access strat.Use delegateUnit tests
Documentation