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
3fca0020
Commit
3fca0020
authored
Sep 03, 2016
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove PLAT_SAFE_CONTINUATIONS; add ECHO; pakage for Nuget
parent
7e0b71a9
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
38 additions
and
19 deletions
+38
-19
.gitignore
.gitignore
+1
-0
project.json
StackExchange.Redis.StrongName/project.json
+3
-3
project.json
StackExchange.Redis.Tests/project.json
+1
-1
IServer.cs
StackExchange.Redis/StackExchange/Redis/IServer.cs
+12
-1
RedisServer.cs
StackExchange.Redis/StackExchange/Redis/RedisServer.cs
+11
-0
TaskSource.cs
StackExchange.Redis/StackExchange/Redis/TaskSource.cs
+1
-5
project.json
StackExchange.Redis/project.json
+3
-3
StackExchange.Redis_Net46.StrongName.csproj
...e.Redis_Net46/StackExchange.Redis_Net46.StrongName.csproj
+3
-3
StackExchange.Redis_Net46.csproj
StackExchange.Redis_Net46/StackExchange.Redis_Net46.csproj
+3
-3
No files found.
.gitignore
View file @
3fca0020
...
...
@@ -19,3 +19,4 @@ RedisQFork*.dat
StackExchange.Redis.*.zip
.vs/
*.lock.json
packages/
\ No newline at end of file
StackExchange.Redis.StrongName/project.json
View file @
3fca0020
...
...
@@ -13,7 +13,7 @@
}
},
"title"
:
"StackExchange.Redis.StrongName"
,
"version"
:
"1.1.60
4
-*"
,
"version"
:
"1.1.60
5
-*"
,
"description"
:
"High performance Redis client, incorporating both synchronous and asynchronous usage."
,
"authors"
:
[
"Stack Exchange inc., marc.gravell"
],
"copyright"
:
"Stack Exchange inc. 2014-"
,
...
...
@@ -58,11 +58,11 @@
"frameworkAssemblies"
:
{
"System.IO.Compression"
:
"4.0.0.0"
},
"define"
:
[
"FEATURE_SERIALIZATION"
,
"PLAT_SAFE_CONTINUATIONS"
]
"define"
:
[
"FEATURE_SERIALIZATION"
]
},
"netstandard1.5"
:
{
"buildOptions"
:
{
"define"
:
[
"
PLAT_SAFE_CONTINUATIONS"
,
"
CORE_CLR"
]
"define"
:
[
"CORE_CLR"
]
},
"dependencies"
:
{
"System.Collections"
:
"4.0.11"
,
...
...
StackExchange.Redis.Tests/project.json
View file @
3fca0020
...
...
@@ -16,7 +16,7 @@
"portable-net45+win8"
],
"buildOptions"
:
{
"define"
:
[
"
PLAT_SAFE_CONTINUATIONS"
,
"
CORE_CLR"
]
"define"
:
[
"CORE_CLR"
]
},
"dependencies"
:
{
"Microsoft.NETCore.App"
:
{
...
...
StackExchange.Redis/StackExchange/Redis/IServer.cs
View file @
3fca0020
...
...
@@ -173,8 +173,19 @@ public partial interface IServer : IRedis
/// Return the number of keys in the database.
/// </summary>
/// <remarks>http://redis.io/commands/dbsize</remarks>
Task
<
long
>
DatabaseSizeAsync
(
int
database
=
0
,
CommandFlags
flags
=
CommandFlags
.
None
);
Task
<
long
>
DatabaseSizeAsync
(
int
database
=
0
,
CommandFlags
flags
=
CommandFlags
.
None
);
/// <summary>
/// Return the same message passed in
/// </summary>
/// <remarks>http://redis.io/commands/echo</remarks>
RedisValue
Echo
(
RedisValue
message
,
CommandFlags
flags
=
CommandFlags
.
None
);
/// <summary>
/// Return the same message passed in
/// </summary>
/// <remarks>http://redis.io/commands/echo</remarks>
Task
<
RedisValue
>
EchoAsync
(
RedisValue
message
,
CommandFlags
flags
=
CommandFlags
.
None
);
/// <summary>
/// Delete all the keys of all databases on the server.
...
...
StackExchange.Redis/StackExchange/Redis/RedisServer.cs
View file @
3fca0020
...
...
@@ -206,6 +206,17 @@ public Task<long> DatabaseSizeAsync(int database = 0, CommandFlags flags = Comma
return
ExecuteAsync
(
msg
,
ResultProcessor
.
Int64
);
}
public
RedisValue
Echo
(
RedisValue
message
,
CommandFlags
flags
)
{
var
msg
=
Message
.
Create
(-
1
,
flags
,
RedisCommand
.
ECHO
,
message
);
return
ExecuteSync
(
msg
,
ResultProcessor
.
RedisValue
);
}
public
Task
<
RedisValue
>
EchoAsync
(
RedisValue
message
,
CommandFlags
flags
)
{
var
msg
=
Message
.
Create
(-
1
,
flags
,
RedisCommand
.
ECHO
,
message
);
return
ExecuteAsync
(
msg
,
ResultProcessor
.
RedisValue
);
}
public
void
FlushAllDatabases
(
CommandFlags
flags
=
CommandFlags
.
None
)
{
var
msg
=
Message
.
Create
(-
1
,
flags
,
RedisCommand
.
FLUSHALL
);
...
...
StackExchange.Redis/StackExchange/Redis/TaskSource.cs
View file @
3fca0020
...
...
@@ -69,17 +69,13 @@ static TaskSource()
tcs
.
SetResult
(
0
);
if
(!
expectTrue
||
expectFalse
)
{
Debug
.
WriteLine
(
"IsSyncSafe reported incorrectly!"
);
Trace
.
WriteLine
(
"IsSyncSafe reported incorrectly!"
);
// revert to not trusting /them
IsSyncSafe
=
null
;
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
)
{
Debug
.
WriteLine
(
ex
.
Message
);
Trace
.
WriteLine
(
ex
.
Message
);
IsSyncSafe
=
null
;
}
if
(
IsSyncSafe
==
null
)
...
...
StackExchange.Redis/project.json
View file @
3fca0020
...
...
@@ -13,7 +13,7 @@
}
},
"title"
:
"StackExchange.Redis"
,
"version"
:
"1.1.60
4
-*"
,
"version"
:
"1.1.60
5
-*"
,
"description"
:
"High performance Redis client, incorporating both synchronous and asynchronous usage."
,
"authors"
:
[
"Stack Exchange inc., marc.gravell"
],
"copyright"
:
"Stack Exchange inc. 2014-"
,
...
...
@@ -44,11 +44,11 @@
"frameworkAssemblies"
:
{
"System.IO.Compression"
:
"4.0.0.0"
},
"define"
:
[
"PLAT_SAFE_CONTINUATIONS"
]
"define"
:
[
]
},
"netstandard1.5"
:
{
"buildOptions"
:
{
"define"
:
[
"
PLAT_SAFE_CONTINUATIONS"
,
"
CORE_CLR"
]
"define"
:
[
"CORE_CLR"
]
},
"dependencies"
:
{
"System.Collections"
:
"4.0.11"
,
...
...
StackExchange.Redis_Net46/StackExchange.Redis_Net46.StrongName.csproj
View file @
3fca0020
...
...
@@ -18,7 +18,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin.snk\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;NET46
PLAT_SAFE_CONTINUATIONS
STRONG_NAME FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;NET46 STRONG_NAME FEATURE_SERIALIZATION FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -62,8 +62,8 @@
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.IO.Compression"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"..\StackExchange.Redis\**\*.cs"
Exclude=
"..\StackExchange.Redis\obj\**\*.cs"
/>
<ItemGroup>
<Compile
Include=
"..\StackExchange.Redis\**\*.cs"
Exclude=
"..\StackExchange.Redis\obj\**\*.cs"
/>
</ItemGroup>
<ItemGroup>
<None
Include=
"packages.config"
/>
...
...
StackExchange.Redis_Net46/StackExchange.Redis_Net46.csproj
View file @
3fca0020
...
...
@@ -18,7 +18,7 @@
<DebugType>
full
</DebugType>
<Optimize>
false
</Optimize>
<OutputPath>
bin\Debug\
</OutputPath>
<DefineConstants>
TRACE;DEBUG;NET46
PLAT_SAFE_CONTINUATIONS
FEATURE_SERIALIZATION;FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<DefineConstants>
TRACE;DEBUG;NET46 FEATURE_SERIALIZATION;FEATURE_SOCKET_MODE_POLL
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<AllowUnsafeBlocks>
true
</AllowUnsafeBlocks>
...
...
@@ -56,8 +56,8 @@
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.IO.Compression"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"..\StackExchange.Redis\**\*.cs"
Exclude=
"..\StackExchange.Redis\obj\**\*.cs"
/>
<ItemGroup>
<Compile
Include=
"..\StackExchange.Redis\**\*.cs"
Exclude=
"..\StackExchange.Redis\obj\**\*.cs"
/>
</ItemGroup>
<ItemGroup>
<None
Include=
"app.config"
/>
...
...
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