Пример #1
0
        static void Main(string[] args)
        {
            try
            {
                IRedisCache cache = CacheFactory.Resolve <IRedisCache>();

                var a = cache.Get("P4");

                Console.WriteLine(a);

                var aa = cache.GetAllKeys();

                Console.ReadLine();
            }
            catch (Exception ex)
            {
                throw new Exception("redis错误", ex);
            }
        }