Commit 50213afb authored by Marc Gravell's avatar Marc Gravell

make Recycle() internal everywhere; too dangerous to risk exposing

parent 1e7f7c8c
...@@ -37,7 +37,7 @@ internal RedisRequest AsCommand(string command) ...@@ -37,7 +37,7 @@ internal RedisRequest AsCommand(string command)
=> new RedisRequest(_inner, Count, command); => new RedisRequest(_inner, Count, command);
public void Recycle() => _inner.Recycle(); internal void Recycle() => _inner.Recycle();
public RedisValue GetValue(int index) public RedisValue GetValue(int index)
=> _inner[index].AsRedisValue(); => _inner[index].AsRedisValue();
......
...@@ -180,7 +180,7 @@ internal RedisValue AsRedisValue() ...@@ -180,7 +180,7 @@ internal RedisValue AsRedisValue()
throw new InvalidCastException("Cannot convert to RedisValue: " + Type); throw new InvalidCastException("Cannot convert to RedisValue: " + Type);
} }
public void Recycle(int limit = -1) internal void Recycle(int limit = -1)
{ {
var arr = _itemsOversized; var arr = _itemsOversized;
if (arr != null) if (arr != null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment