public void clear() { if (_cacheType == "Redis") { ICacheManager manager = new RedisCacheManager(); manager.clear(); } }
public void set(string key, object data, int cacheTime) { ICacheManager manager; if (_cacheType == "Redis") { manager = new RedisCacheManager(); } else { manager = new RedisCacheManager(); } manager.set(key, data, cacheTime); }
public void removeByPattern(string pattern) { ICacheManager manager; if (_cacheType == "Redis") { manager = new RedisCacheManager(); } else { manager = new RedisCacheManager(); } manager.removeByPattern(pattern); }
public bool remove(string key) { ICacheManager manager; if (_cacheType == "Redis") { manager = new RedisCacheManager(); } else { manager = new RedisCacheManager(); } return(manager.remove(key)); }
public DTO.Movies get(string key) { ICacheManager manager; if (_cacheType == "Redis") { manager = new RedisCacheManager(); } else { manager = new RedisCacheManager(); } return(manager.get(key)); }