예제 #1
0
        public static BaseMessageEntity GetCacheByKey(string key)
        {
            BaseMessageEntity result = null;

            if (!string.IsNullOrWhiteSpace(key))
            {
                using (var redisClient = PooledRedisHelper.GetMessageReadOnlyClient())
                {
                    result = redisClient.Get <BaseMessageEntity>(key);
                }
            }

            return(result);
        }