public override void Dispose() { if (_disposeClient) { _client.Dispose(); } }
/// <summary> /// Disposes of the memcached client that was created by this factory /// </summary> /// <param name="client"></param> public void DestroyCache() { if (_client != null) { _client.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { // Dispose managed resources. if (Client != null) { Client.Dispose(); } } // There are no unmanaged resources to release, but // if we add them, they need to be released here. } disposed = true; }
public void Dispose() { _memcachedClient.Dispose(); }