After 10 minutes, the user key is removed from the cache, so when I call the invalidate method, the key for the User entity no longer exists. Then you won't be able to remove the values from this key.
The value is only removed from the cache after 5 minutes without any queries executed. Until then will return inconsistent data.
Hi,
Environment
I set the global settings with absolute expiration:
In query i change the expiration mode to sliding and timeout to 5 minutes
After 10 minutes, the user key is removed from the cache, so when I call the invalidate method, the key for the User entity no longer exists. Then you won't be able to remove the values from this key.
The value is only removed from the cache after 5 minutes without any queries executed. Until then will return inconsistent data.
Thanks