Commit 3e0be265 authored by Rob Sigrest's avatar Rob Sigrest

Updating to allow the creation of RedisResults for mocking

parent 730854ac
......@@ -7,6 +7,14 @@ namespace StackExchange.Redis
/// </summary>
public abstract class RedisResult
{
/// <summary>
/// Create a new RedisResult.
/// </summary>
/// <returns></returns>
public static RedisResult Create(ResultType type, byte[] value)
{
return TryCreate(null, new RawResult(type, value, 0, value.Length));
}
// internally, this is very similar to RawResult, except it is designed to be usable
// outside of the IO-processing pipeline: the buffers are standalone, etc
......
namespace StackExchange.Redis
{
internal enum ResultType : byte
public 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