1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace KC.Cache
- {
-
-
-
- public interface ICache
- {
-
-
-
-
-
-
- void WriteCache<T>(string cacheKey, T value, int seconds = 0) where T : class;
-
-
-
-
-
- T GetCache<T>(string cacheKey) where T : class;
-
-
-
-
- List<string> GetAllKeys();
-
-
-
-
-
- bool HasExpire(string key);
-
-
-
-
- void RemoveCache(string key);
-
-
-
-
- void RemoveCache(List<string> keys);
- }
- }
|