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

containsKey with default near-cache config on single node #174

Closed
adeyneka opened this issue May 29, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@adeyneka
Copy link

commented May 29, 2012

containsKey doesn't work on single node with default near-cache config.

It works only if we set max-size=0.

I guess it's related with the code bellow in MContainsKey internal class
if (nearCache != null) {
if (nearCache.containsKey(key)) {
return true;
} else if (nearCache.getMaxSize() == Integer.MAX_VALUE) {
return false;
}
}

@ghost ghost assigned enesakar May 29, 2012

@enesakar enesakar closed this in 5bb47ef May 29, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.