纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
473 B

3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NFine.Code
  7. {
  8. public interface ICache
  9. {
  10. T GetCache<T>(string cacheKey) where T : class;
  11. void WriteCache<T>(T value, string cacheKey) where T : class;
  12. void WriteCache<T>(T value, string cacheKey, DateTime expireTime) where T : class;
  13. void RemoveCache(string cacheKey);
  14. void RemoveCache();
  15. }
  16. }