Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit d7b3df8

Browse files
committed
Don't return an open IEnumerable cursor if client is disposed
1 parent 76554a5 commit d7b3df8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ServiceStack.Redis/RedisClientManagerCacheClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Linq;
34
using ServiceStack.Caching;
45

56
namespace ServiceStack.Redis
@@ -212,7 +213,7 @@ public IEnumerable<string> GetKeysByPattern(string pattern)
212213
{
213214
using (var client = (RedisClient)GetClient())
214215
{
215-
return client.GetKeysByPattern(pattern);
216+
return client.GetKeysByPattern(pattern).ToList();
216217
}
217218
}
218219
}

0 commit comments

Comments
 (0)