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

ISPN-15212 TOUCH #11366

Merged
merged 1 commit into from
Oct 9, 2023
Merged

ISPN-15212 TOUCH #11366

merged 1 commit into from
Oct 9, 2023

Conversation

karesti
Copy link
Contributor

@karesti karesti commented Oct 6, 2023

@jabolina jabolina merged commit e57a4c1 into infinispan:main Oct 9, 2023
4 checks passed
@jabolina
Copy link
Member

jabolina commented Oct 9, 2023

Thanks, @karesti!


CompletableFuture<Long> totalTouchCount = CompletableFutures.sequence(
arguments.stream()
.map(key -> (CompletableFuture<Boolean>) handler.cache().touch(key, true))
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to touch even if it is max idle expired?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I think so

Copy link
Member

Choose a reason for hiding this comment

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

The default behavior should be not to touch a key if it is already max expired. The only reason it is an option is for when a key is read on a different node before when it wasn't expired.

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