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
f0379da8
Commit
f0379da8
authored
Feb 27, 2015
by
kevin-montrose
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
ad868210
f4208759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
RedisDatabase.cs
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
+6
-1
No files found.
StackExchange.Redis/StackExchange/Redis/RedisDatabase.cs
View file @
f0379da8
...
...
@@ -786,6 +786,7 @@ public bool LockExtend(RedisKey key, RedisValue value, TimeSpan expiry, CommandF
{
if
(
value
.
IsNull
)
throw
new
ArgumentNullException
(
"value"
);
var
tran
=
GetLockExtendTransaction
(
key
,
value
,
expiry
);
if
(
tran
!=
null
)
return
tran
.
Execute
(
flags
);
// without transactions (twemproxy etc), we can't enforce the "value" part
...
...
@@ -863,6 +864,7 @@ public RedisResult ScriptEvaluate(string script, RedisKey[] keys = null, RedisVa
try
{
return
ExecuteSync
(
msg
,
ResultProcessor
.
ScriptResult
);
}
catch
(
RedisServerException
)
{
...
...
@@ -876,6 +878,7 @@ public RedisResult ScriptEvaluate(byte[] hash, RedisKey[] keys = null, RedisValu
var
msg
=
new
ScriptEvalMessage
(
Db
,
flags
,
hash
,
keys
,
values
);
return
ExecuteSync
(
msg
,
ResultProcessor
.
ScriptResult
);
}
public
RedisResult
ScriptEvaluate
(
LuaScript
script
,
object
parameters
=
null
,
CommandFlags
flags
=
CommandFlags
.
None
)
{
return
script
.
Evaluate
(
this
,
parameters
,
null
,
flags
);
...
...
@@ -885,6 +888,7 @@ public RedisResult ScriptEvaluate(LoadedLuaScript script, object parameters = nu
return
script
.
Evaluate
(
this
,
parameters
,
null
,
flags
);
}
public
Task
<
RedisResult
>
ScriptEvaluateAsync
(
string
script
,
RedisKey
[]
keys
=
null
,
RedisValue
[]
values
=
null
,
CommandFlags
flags
=
CommandFlags
.
None
)
{
var
msg
=
new
ScriptEvalMessage
(
Db
,
flags
,
script
,
keys
,
values
);
...
...
@@ -895,6 +899,7 @@ public Task<RedisResult> ScriptEvaluateAsync(byte[] hash, RedisKey[] keys = null
var
msg
=
new
ScriptEvalMessage
(
Db
,
flags
,
hash
,
keys
,
values
);
return
ExecuteAsync
(
msg
,
ResultProcessor
.
ScriptResult
);
}
public
Task
<
RedisResult
>
ScriptEvaluateAsync
(
LuaScript
script
,
object
parameters
=
null
,
CommandFlags
flags
=
CommandFlags
.
None
)
{
return
script
.
EvaluateAsync
(
this
,
parameters
,
null
,
flags
);
...
...
@@ -2407,4 +2412,4 @@ protected override bool SetResultCore(PhysicalConnection connection, Message mes
}
}
}
}
\ No newline at end of file
}
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