public override void Dispose()
 {
     if (_disposeClient)
     {
         _client.Dispose();
     }
 }
Ejemplo n.º 2
0
 /// <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();
     }
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public void Dispose()
 {
     _memcachedClient.Dispose();
 }