예제 #1
0
 public void Dispose()
 {
     if (_redis != null)
     {
         _redis.Dispose();
     }
 }
예제 #2
0
 // 释放资源
 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();
     }
 }
예제 #4
0
 private void Dispose()
 {
     _redis.Dispose();
     GC.SuppressFinalize(this);
 }