public SlabsDto GetSlabs(ConnectionDto connection) { SlabsDto slabs = null; Cache cache = new Cache(connection); cache.Connect(); slabs = cache.GetSlabs(); cache.Disconnect(); return slabs; }
public Collection<ItemDto> GetItems(ConnectionDto connection, SlabDto slab, bool mustRetrieveValues) { Collection<ItemDto> items = null; Cache cache = new Cache(connection); cache.Connect(); items = cache.GetItems(slab); cache.Disconnect(); return items; }
public void Register(ConnectionDto connection) { Cache cache = new Cache(connection); try { cache.Connect(); cache.Disconnect(); CacheRegistrationService.Connections.Add(connection); } catch (Exception ex) { throw new CacheConnectionException(ex.Message, ex); } }
public StatisticsDto GetStatistics(ConnectionDto connection) { Cache cache = new Cache(connection); return cache.GetStatistics(); }
public SlabStatisticsDto GetMetadata(ConnectionDto connection) { Cache cache = new Cache(connection); return cache.GetMetadata(); }
public void FlushAll(ConnectionDto connection) { Cache cache = new Cache(connection); cache.FlushAll(); }
public void Set(ConnectionDto connection, string key, object value) { Cache cache = new Cache(connection); cache.Set(key, value); }
public void Replace(ConnectionDto connection, string key, object value) { Cache cache = new Cache(connection); cache.Replace(key, value); }
public void Remove(ConnectionDto connection, string key) { Cache cache = new Cache(connection); cache.Remove(key); }
public object Get(ConnectionDto connection, string key) { Cache cache = new Cache(connection); return cache.Get(key); }
public object Get(ConnectionDto connection, string key) { Cache cache = new Cache(connection); return(cache.Get(key)); }