Closed xiaohanlaila closed 1 year ago
RedisHelper.Scan("*" ,...
后面的参数看下 redis.cn
RedisHelper.Keys("*") 也可以,只不过会阻塞 redis-server,有风险。
如果使用 FreeRedis 就方便很多,[开源福利] FreeRedis 历时两年正式发布 v1.0 [C#.NET Redis Client]
foreach (var keys in cli.Scan("*", 10, null))
{
Console.WriteLine(string.Join(", ", keys));
}
好的,非常感谢
大佬,请问如何实现模糊搜索功能