davidjrh / dnn.rediscachingprovider

This caching provider allows to use a Redis cache server or cluster within DNN Platform (formerly DotNetNuke)
MIT License
23 stars 16 forks source link

Rediscluster #23

Closed adambartholomew closed 7 years ago

adambartholomew commented 7 years ago

Error being presented while connecting to redis clusters: [ERROR] DotNetNuke.Providers.RedisCachingProvider.RedisCachingProvider - StackExchange.Redis.RedisServerException: ERR Error running script (call to f_7f0f1263d5eda592424f841ce2bfb3c7f10c6542): @user_script:1: @user_script: 1: Lua script attempted to access a non local key in a cluster node

Discussion about the exception with regards to clusters StackExchange/StackExchange.Redis#305

In short, redis.call/del need to be called with arguments that can be forwarded to all systems in the cluster. The use of ARGV and local variables allows this code to properly work on clustered environments.

Also updated to redis 1.2.3, I can pull this out of the PR if required.