public void Dispose() { if (_redis != null) { _redis.Dispose(); } }
// 释放资源 public void Dispose() { if (Redis != null) { Redis.Dispose(); Redis = null; } GC.Collect(); }
public void Dispose() { if (_pipeline != null) { _pipeline.Dispose(); } if (_client != null) { _client.Dispose(); } }
private void Dispose() { _redis.Dispose(); GC.SuppressFinalize(this); }