Commit 2f7eeb21 authored by Rob Sigrest's avatar Rob Sigrest

Modifying Create() method to simply take a RedisValue and reverting access modifier on ResultType

parent 3e0be265
......@@ -11,9 +11,9 @@ public abstract class RedisResult
/// Create a new RedisResult.
/// </summary>
/// <returns></returns>
public static RedisResult Create(ResultType type, byte[] value)
public static RedisResult Create(RedisValue value)
{
return TryCreate(null, new RawResult(type, value, 0, value.Length));
return new SingleRedisResult(value);
}
// internally, this is very similar to RawResult, except it is designed to be usable
......
namespace StackExchange.Redis
{
public enum ResultType : byte
internal enum ResultType : byte
{
None = 0,
SimpleString = 1,
......
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