Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
3e0be265
Commit
3e0be265
authored
Jul 07, 2016
by
Rob Sigrest
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating to allow the creation of RedisResults for mocking
parent
730854ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
RedisResult.cs
StackExchange.Redis/StackExchange/Redis/RedisResult.cs
+8
-0
ResultType.cs
StackExchange.Redis/StackExchange/Redis/ResultType.cs
+1
-1
No files found.
StackExchange.Redis/StackExchange/Redis/RedisResult.cs
View file @
3e0be265
...
...
@@ -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
...
...
StackExchange.Redis/StackExchange/Redis/ResultType.cs
View file @
3e0be265
namespace
StackExchange.Redis
{
internal
enum
ResultType
:
byte
public
enum
ResultType
:
byte
{
None
=
0
,
SimpleString
=
1
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment