1
hutongqing
2024-10-29 9ca96199d92168fe221dda9aba56f55520a561d8
WIDESEAWCS_Server/WIDESEAWCS_Core/Caches/ICacheService.cs
@@ -29,6 +29,8 @@
        void AddOrUpdate(string key, string value, int expireSeconds = -1, bool isSliding = false);
        void AddOrUpdate(string key, object value, int expireSeconds = -1, bool isSliding = false);
        /// <summary>
        /// 删除缓存
        /// </summary>
@@ -48,13 +50,15 @@
        /// </summary>
        /// <param name="key">缓存Key</param>
        /// <returns></returns>
        T Get<T>(string key) where T : class;
        T? Get<T>(string key) where T : class;
        object? Get(Type type, string key);
        /// <summary>
        /// 获取缓存
        /// </summary>
        /// <param name="key">缓存Key</param>
        /// <returns></returns>
        string Get(string key);
        string? Get(string key);
    }
}