123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
-
- using System;
- using System.Threading.Tasks;
- namespace Admin.Core.Common.Cache
- {
-
-
-
- public interface ICache
- {
-
-
-
-
- long Del(params string[] key);
-
-
-
-
-
- Task<long> DelAsync(params string[] key);
-
-
-
-
-
- Task<long> DelByPatternAsync(string pattern);
-
-
-
-
-
- bool Exists(string key);
-
-
-
-
-
- Task<bool> ExistsAsync(string key);
-
-
-
-
-
- string Get(string key);
-
-
-
-
-
-
- T Get<T>(string key);
-
-
-
-
-
- Task<string> GetAsync(string key);
-
-
-
-
-
-
- Task<T> GetAsync<T>(string key);
-
-
-
-
-
- bool Set(string key, object value);
-
-
-
-
-
-
- bool Set(string key, object value, TimeSpan expire);
-
-
-
-
-
-
- Task<bool> SetAsync(string key, object value);
-
-
-
-
-
-
-
- Task<bool> SetAsync(string key, object value, TimeSpan expire);
- }
- }
|