azure-caching

Laravel + predis + Redis cluster - MOVED / no connection to 127.0.0.1:6379

假如想象 提交于 2019-11-29 02:33:38
I have a laravel (5.3) app with redis used for sessions (using predis). Everything works as long as I use a single redis node (using default approach from config/database.php ). As soon as I switch to a Redis cluster though I am starting to get MOVED error like 50% of the time (based on googling I understand that this should be managed by predis, but somehow isn't). I tried changing the cluster parameter to true, but then I get a weird error No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379] Although the redis cluster that I use is deployed in

The type initializer for 'Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment' threw an exception

笑着哭i 提交于 2019-11-27 18:30:40
问题 I am trying to use Windows Azure Caching to store sessions in a MVC4 application. I build a application following steps from Link but when i try to make object of DataCache using below code line. DataCache cache = new DataCache("default"); Errors occurs: Microsoft.WindowsAzure.ServiceRuntime.dll not found or version mismatched, I updated my Windows Azure Emulator version to 2.0.0 and install WindowsAzure.Caching package version 2.0.0.0 using NuGet package installer. Now the error changes to

Laravel + predis + Redis cluster - MOVED / no connection to 127.0.0.1:6379

匆匆过客 提交于 2019-11-27 15:19:04
问题 I have a laravel (5.3) app with redis used for sessions (using predis). Everything works as long as I use a single redis node (using default approach from config/database.php ). As soon as I switch to a Redis cluster though I am starting to get MOVED error like 50% of the time (based on googling I understand that this should be managed by predis, but somehow isn't). I tried changing the cluster parameter to true, but then I get a weird error No connection could be made because the target