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

Add support for MemoizeExpiring #20

Merged
merged 5 commits into from
Jan 7, 2021

Conversation

InventivetalentDev
Copy link
Contributor

Adds MemoizeExpiring decorator to support auto-clearing memoized values after a defined duration.
(Also partially implements #13)

@MemoizeExpiring(5000)
public getDataForSomeTime() {
    // do some expensive operation to get data
    return data;
}

Copy link
Owner

@darrylhodgins darrylhodgins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, @InventivetalentDev :)

@darrylhodgins darrylhodgins merged commit 5d45d94 into darrylhodgins:master Jan 7, 2021
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