| | |
| | | |
| | | 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> |
| | |
| | | /// </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); |
| | | } |
| | | } |