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
157abb43
Commit
157abb43
authored
Feb 08, 2016
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C#6 Cleanup
parent
5abe60bf
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
79 deletions
+50
-79
ClusterConfiguration.cs
...xchange.Redis/StackExchange/Redis/ClusterConfiguration.cs
+41
-55
InternalRegexCompiledOption.cs
....Redis/StackExchange/Redis/InternalRegexCompiledOption.cs
+2
-10
RedisDatabase.cs
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
+1
-1
RedisResult.cs
StackExchange.Redis/StackExchange/Redis/RedisResult.cs
+1
-4
ResultBox.cs
StackExchange.Redis/StackExchange/Redis/ResultBox.cs
+5
-9
No files found.
StackExchange.Redis/StackExchange/Redis/ClusterConfiguration.cs
View file @
157abb43
This diff is collapsed.
Click to expand it.
StackExchange.Redis/StackExchange/Redis/InternalRegexCompiledOption.cs
View file @
157abb43
...
...
@@ -10,15 +10,13 @@ namespace StackExchange.Redis
/// </summary>
internal
static
class
InternalRegexCompiledOption
{
private
static
readonly
RegexOptions
RegexCompiledOption
;
static
InternalRegexCompiledOption
()
{
#if CORE_CLR
if
(!
Enum
.
TryParse
(
"Compiled"
,
out
RegexCompiledOption
))
RegexCompiledOption
=
RegexOptions
.
None
;
#else
RegexCompiledOption
=
RegexOptions
.
Compiled
;
Default
=
RegexOptions
.
Compiled
;
#endif
}
...
...
@@ -28,12 +26,6 @@ static InternalRegexCompiledOption()
/// This returns <see cref="System.Text.RegularExpressions.RegexOptions.Compiled"/> if it is supported;
/// <see cref="System.Text.RegularExpressions.RegexOptions.None"/> otherwise.
/// </summary>
public
static
RegexOptions
Default
{
get
{
return
RegexCompiledOption
;
}
}
public
static
RegexOptions
Default
{
get
;
}
}
}
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
View file @
157abb43
...
...
@@ -2367,7 +2367,7 @@ public StringGetWithExpiryMessage(int db, CommandFlags flags, RedisCommand ttlCo
{
this
.
ttlCommand
=
ttlCommand
;
}
public
override
string
CommandAndKey
{
get
{
return
ttlCommand
+
"+"
+
RedisCommand
.
GET
+
" "
+
(
string
)
Key
;
}
}
public
override
string
CommandAndKey
=>
ttlCommand
+
"+"
+
RedisCommand
.
GET
+
" "
+
(
string
)
Key
;
public
IEnumerable
<
Message
>
GetMessages
(
PhysicalConnection
connection
)
{
...
...
StackExchange.Redis/StackExchange/Redis/RedisResult.cs
View file @
157abb43
...
...
@@ -174,10 +174,7 @@ internal static RedisResult TryCreate(PhysicalConnection connection, RawResult r
internal
abstract
string
[]
AsStringArray
();
private
sealed
class
ArrayRedisResult
:
RedisResult
{
public
override
bool
IsNull
{
get
{
return
value
==
null
;
}
}
public
override
bool
IsNull
=>
value
==
null
;
private
readonly
RedisResult
[]
value
;
public
ArrayRedisResult
(
RedisResult
[]
value
)
{
...
...
StackExchange.Redis/StackExchange/Redis/ResultBox.cs
View file @
157abb43
...
...
@@ -44,15 +44,11 @@ public ResultBox(object stateOrCompletionSource)
{
this
.
stateOrCompletionSource
=
stateOrCompletionSource
;
}
public
object
AsyncState
{
get
{
return
stateOrCompletionSource
is
TaskCompletionSource
<
T
>
?
((
TaskCompletionSource
<
T
>)
stateOrCompletionSource
).
Task
.
AsyncState
:
stateOrCompletionSource
;
}
}
public
object
AsyncState
=>
stateOrCompletionSource
is
TaskCompletionSource
<
T
>
?
((
TaskCompletionSource
<
T
>)
stateOrCompletionSource
).
Task
.
AsyncState
:
stateOrCompletionSource
;
public
static
ResultBox
<
T
>
Get
(
object
stateOrCompletionSource
)
{
...
...
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