using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CacheInterface { public interface ICacheService { Task Set(string key, T value, int ttl = -1); Task BatchSet(Dictionary values, int ttl = -1); Task Get(string key); Task> BatchGet(IEnumerable keys); Task Delete(string key); Task BatchDelete(params string[] keys); Task> Query(string query, int count = 9999); } }