/// <summary>
        /// 获取或添加缓存
        /// </summary>
        /// <typeparam name="TCacheObject"></typeparam>
        /// <param name="redisDb"></param>
        /// <param name="key"></param>
        /// <param name="expireTime"></param>
        /// <param name="factory"></param>
        /// <param name="redisManager"></param>
        /// <returns></returns>
        public static async Task <TCacheObject> GetOrAddAsync <TCacheObject>(
            this RedisManager redisManager,
            EnumRedisDb redisDb,
            string key,
            DateTimeOffset expireTime,
            Func <TCacheObject> factory)
        {
            TCacheObject cacheObject;

            var result = await redisManager.GetAsync <TCacheObject>(redisDb, key);

            if (result == null)
            {
                cacheObject = factory.Invoke();

                await redisManager.AddAsync(redisDb, key, cacheObject, expireTime);
            }
            else
            {
                cacheObject = result;
            }

            return(cacheObject);
        }
 public static async Task RemoveAsync(this RedisManager redisManager, string key, int cursor = 0)
 {
     await Task.CompletedTask;
 }