We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85e5d8b commit e76e5daCopy full SHA for e76e5da
Enyim.Caching/MemcachedClient.cs
@@ -196,6 +196,12 @@ public async Task<IGetOperationResult<T>> GetAsync<T>(string key)
196
result.Value = transcoder.Deserialize<T>(command.Result);
197
return result;
198
}
199
+ else
200
+ {
201
+ commandResult.Combine(result);
202
+
203
+ return result;
204
+ }
205
206
catch (Exception ex)
207
{
@@ -208,8 +214,7 @@ public async Task<IGetOperationResult<T>> GetAsync<T>(string key)
208
214
_logger.LogError($"Unable to locate memcached node");
209
215
210
216
211
- result.Success = false;
212
- result.Value = default(T);
217
+ result.Fail("Unable to locate node");
213
218
219
220
0 commit comments