You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: ABP Redis Cache : 2023-07-10 13:55:17,673 - ERR Script attempted to access a non local key in a cluster node script: fea3235e8ce23bcab0e0ad87c68f38d7b03cda64, on @user_script:4. - StackExchange.Redis.RedisServerException: ERR Script attempted to access a non local key in a cluster node script: fea3235e8ce23bcab0e0ad87c68f38d7b03cda64, on @user_script:4.
System tries to clear cache based on the key being provided by calling ClearAsync() but if the key is not found on cluster node then it generates this exception.
ismcagdas
changed the title
ABP Redis Cache : 2023-07-10 13:55:17,673 - ERR Script attempted to access a non local key in a cluster node script: fea3235e8ce23bcab0e0ad87c68f38d7b03cda64, on @user_script:4. - StackExchange.Redis.RedisServerException: ERR Script attempted to access a non local key in a cluster node script: fea3235e8ce23bcab0e0ad87c68f38d7b03cda64, on @user_script:4.
Don't throw error while clearing Redis cache
Oct 17, 2023
ERROR: ABP Redis Cache : 2023-07-10 13:55:17,673 - ERR Script attempted to access a non local key in a cluster node script: fea3235e8ce23bcab0e0ad87c68f38d7b03cda64, on @user_script:4. - StackExchange.Redis.RedisServerException: ERR Script attempted to access a non local key in a cluster node script: fea3235e8ce23bcab0e0ad87c68f38d7b03cda64, on @user_script:4.
System tries to clear cache based on the key being provided by calling ClearAsync() but if the key is not found on cluster node then it generates this exception.
ABP Version : 5.10.1.0
await _cacheManager.GetCache(keyCache).ClearAsync();
return await _cacheManager.GetCache(keyCache).GetAsync(subKeyCache, func);
return await _cacheManager.GetCache(keyCache).GetOrDefaultAsync(subKeyCache);
How can I validate if the key exists or not on cluster node.
I need to handle it gracefully since I am also using GetAsync(subKeyCache, func), GetOrDefaultAsync(subKeyCache)
Best,
Sohaib
The text was updated successfully, but these errors were encountered: