Я полностью сыт по горло кэшем Redis Azure с функцией.
Ниже строки «Test Code», работающей в консольном приложении, но не работающей с функцией Azure.
IConnectionMultiplexer connection = ConnectionMultiplexer.Connect("**********rediscache.redis.cache.windows.net:6380,password=nFpm1oIiyP8ZiCxC/WMcxaFRzGo4yMgWDYZksQgqO4U=,ssl=True,abortConnect=False");
IDatabase database = connection.GetDatabase();
bool isConnected = connection.IsConnected;
var test = database.HashExists("key", "fieldKey");
database.HashSet("key", "fieldKey", "test");
database.StringSet("Key", "Value");
var result = database.StringGet("Key");
connection.Close();
Использование функции Azureиз Visual Studio
Nuget - StackExchange.Redis 2.0.505 и Microsoft.NET.Sdk.Functions 1.0.22
Exception while executing function: Function1. StackExchange.Redis:
No connection is available to service this operation: HEXISTS key;
UnableToConnect on
catamsrediscache.redis.cache.windows.net:6380/Interactive,
Flushed, last: ECHO, origin: ResetNonConnected, outstanding: 9, last-read:
5s ago, last-write: 0s ago, unanswered-write: 0s ago, keep-alive: 60s,
state: ConnectedEstablishing, mgr: 10 of 10 available, last-heartbeat:
never, global:
0s ago, v: 2.0.505.18761; IOCP: (Busy=0,Free=1000,Min=4,Max=1000), WORKER:
(Busy=2,Free=1021,Min=4,Max=1023), Local-CPU: n/a. UnableToConnect on
catamsrediscache.redis.cache.windows.net:6380/Interactive, Flushed, last:
ECHO, origin: ResetNonConnected, outstanding: 9, last-read: 5s ago,
last-write: 0s ago, unanswered-write: 0s ago, keep-alive: 60s, state:
ConnectedEstablishing, mgr: 10 of 10 available, last-heartbeat: never,
global: 0s ago, v: 2.0.505.18761.
Кто-нибудь знает, почему эта ошибка возникает втолько функция?