-
Notifications
You must be signed in to change notification settings - Fork 128
feat: New WithMaxCost
option for custom cache capacity management strategies
#152
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
2d92605
new option to define the max memory the cache can use in bytes
dadrus 6e92deb
cache.set updated to cope with memory limitations
dadrus 666a987
options updated to implement the suggested new option
dadrus 0a2236a
cache impl updated + tests
dadrus fa705e7
dependencies updated
dadrus dcc9743
imports organized
dadrus 7d51be1
readme updated to document the new configuration option
dadrus fea314a
better explanation in the example
dadrus e7e24cc
readme line removed by accident restored
dadrus 53b1934
function renamed (typo fixed)
dadrus 7a9baa3
wording fixed
dadrus 0b17592
useless sentence removed
dadrus d1bdbee
costs renamed to cost
dadrus a2f5915
cost used in tests simplified
dadrus 8965baf
CostCalcFunc renamed to CostFunc
dadrus 58dcb90
costsCalcFunc renamed to costFunc
dadrus 23cfbf0
updateExpirations moved
dadrus 08a47e8
totalCost renamed to maxCost
dadrus c594b8d
WithTotalCost option renamed to WithMaxCost
dadrus c4b0baa
example in README updated
dadrus 2a04fee
signature of the WithMaxCost option changed
dadrus e595b68
Merge branch 'v3' into feat/cache_size_in_bytes
dadrus e36c05f
readme updated
dadrus ce9482f
Item impl updated to hold the current cost and the corresponding cost…
dadrus da1f07e
cache impl updated to make use of the new item properties
dadrus d275891
new item options
dadrus d20ea4d
tests for the new options
dadrus 692baf0
new Item related tests
dadrus 2308b72
cache tests fixed to make them compile
dadrus fd2c7ad
item option implementation updated to become a private interface
dadrus 2a15bc1
cache set test updated
dadrus eebe1a8
made new item related functions private + eviction reason renamed
dadrus 5cb43bf
moved initial item cost calsulation to the constructor function
dadrus e70f90d
test functions renamed to reflect the private nature of functions und…
dadrus 43fc033
version tracking fixed
dadrus 41f3351
small readme update
dadrus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There 8000 are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.