using ServiceStack.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ToolsClassLibrary { public class RedisHelper { static RedisClient rc; public RedisHelper(string _ip, int _port, string _pwd, int _db) { if (rc == null) { rc = new RedisClient(_ip, _port, _pwd, _db); } } public List GetRedisKeys() { return rc.GetAllKeys(); } public IDictionary GetRedisKeys(List points) { return rc.GetAll(points); } } }