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
dcf546f4
Commit
dcf546f4
authored
Jan 23, 2015
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PING (in IdentifyEndpoint) does not need a database
parent
ecd1eaaf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
Issue118.cs
StackExchange.Redis.Tests/Issues/Issue118.cs
+12
-0
RedisDatabase.cs
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
+2
-2
No files found.
StackExchange.Redis.Tests/Issues/Issue118.cs
0 → 100644
View file @
dcf546f4
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
StackExchange.Redis.Tests.Issues
{
class
Issue118
{
}
}
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
View file @
dcf546f4
...
@@ -345,13 +345,13 @@ public Task HyperLogLogMergeAsync(RedisKey destination, RedisKey[] sourceKeys, C
...
@@ -345,13 +345,13 @@ public Task HyperLogLogMergeAsync(RedisKey destination, RedisKey[] sourceKeys, C
public
EndPoint
IdentifyEndpoint
(
RedisKey
key
=
default
(
RedisKey
),
CommandFlags
flags
=
CommandFlags
.
None
)
public
EndPoint
IdentifyEndpoint
(
RedisKey
key
=
default
(
RedisKey
),
CommandFlags
flags
=
CommandFlags
.
None
)
{
{
var
msg
=
key
.
IsNull
?
Message
.
Create
(
Db
,
flags
,
RedisCommand
.
PING
)
:
Message
.
Create
(
Db
,
flags
,
RedisCommand
.
EXISTS
,
key
);
var
msg
=
key
.
IsNull
?
Message
.
Create
(
-
1
,
flags
,
RedisCommand
.
PING
)
:
Message
.
Create
(
Db
,
flags
,
RedisCommand
.
EXISTS
,
key
);
return
ExecuteSync
(
msg
,
ResultProcessor
.
ConnectionIdentity
);
return
ExecuteSync
(
msg
,
ResultProcessor
.
ConnectionIdentity
);
}
}
public
Task
<
EndPoint
>
IdentifyEndpointAsync
(
RedisKey
key
=
default
(
RedisKey
),
CommandFlags
flags
=
CommandFlags
.
None
)
public
Task
<
EndPoint
>
IdentifyEndpointAsync
(
RedisKey
key
=
default
(
RedisKey
),
CommandFlags
flags
=
CommandFlags
.
None
)
{
{
var
msg
=
key
.
IsNull
?
Message
.
Create
(
Db
,
flags
,
RedisCommand
.
PING
)
:
Message
.
Create
(
Db
,
flags
,
RedisCommand
.
EXISTS
,
key
);
var
msg
=
key
.
IsNull
?
Message
.
Create
(
-
1
,
flags
,
RedisCommand
.
PING
)
:
Message
.
Create
(
Db
,
flags
,
RedisCommand
.
EXISTS
,
key
);
return
ExecuteAsync
(
msg
,
ResultProcessor
.
ConnectionIdentity
);
return
ExecuteAsync
(
msg
,
ResultProcessor
.
ConnectionIdentity
);
}
}
...
...
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