Skip to content

Commit

Permalink
INCR to v3.9.51
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jun 16, 2013
1 parent fcf546f commit 41cb476
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
Binary file modified NuGet/lib/net35/ServiceStack.Redis.dll
Binary file not shown.
20 changes: 12 additions & 8 deletions NuGet/servicestack.redis.nuspec
Expand Up @@ -3,21 +3,25 @@
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>ServiceStack.Redis</id>
<title>C# Redis client for the Redis NoSQL DB</title>
<version>3.9.50</version>
<authors>Demis Bellot</authors>
<version>3.9.51</version>
<authors>Demis Bellot</authors>
<owners>Demis Bellot</owners>
<description>
C# Redis Client for the worlds fastest distributed NoSQL datastore. Byte[], String and POCO Typed clients.
Thread-Safe Basic and Pooled client managers included.
</description>
C# Redis Client for the worlds fastest distributed NoSQL datastore. Byte[], String and POCO Typed clients.
Thread-Safe Basic and Pooled client managers included.
</description>
<projectUrl>https://github.com/ServiceStack/ServiceStack.Redis</projectUrl>
<licenseUrl>https://github.com/ServiceStack/ServiceStack.Redis/blob/master/LICENSE</licenseUrl>
<iconUrl>http://www.servicestack.net/logo-100x100.png</iconUrl>
<tags>Redis NoSQL Client Distributed Cache PubSub Messaging Transactions</tags>
<language>en-US</language>
<language>en-US</language>
<copyright>ServiceStack 2013 and contributors</copyright>
<dependencies>
<dependency id="ServiceStack.Common" />
</dependencies>
</metadata>
</dependencies>
</metadata>
<files>
<file src="lib\**\*.*" target="lib" />
<file src="..\src\**\*.cs" target="src" />
</files>
</package>
2 changes: 1 addition & 1 deletion src/ServiceStack.Redis/Properties/AssemblyInfo.cs
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.9.50.0")]
[assembly: AssemblyVersion("3.9.51.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: InternalsVisibleTo("ServiceStack.Redis.Tests")]
17 changes: 6 additions & 11 deletions tests/ServiceStack.Redis.Tests/Issues/ReportedIssues.cs
Expand Up @@ -12,9 +12,7 @@ public class ReportedIssues
[Test]
public void Add_range_to_set_fails_if_first_command()
{
var redis = new RedisClient(TestConfig.SingleHost);

redis.AddRangeToSet("testset", storeMembers);
Redis.AddRangeToSet("testset", storeMembers);

var members = Redis.GetAllItemsFromSet("testset");
Assert.That(members, Is.EquivalentTo(storeMembers));
Expand All @@ -23,27 +21,24 @@ public void Add_range_to_set_fails_if_first_command()
[Test]
public void Transaction_fails_if_first_command()
{
var redis = new RedisClient(TestConfig.SingleHost);
using (var trans = redis.CreateTransaction())
using (var trans = Redis.CreateTransaction())
{
trans.QueueCommand(r => r.IncrementValue("A"));

trans.Commit();
}
Assert.That(redis.GetValue("A"), Is.EqualTo("1"));
Assert.That(Redis.GetValue("A"), Is.EqualTo("1"));
}

[Test]
public void Success_callback_fails_for_pipeline_using_GetItemScoreInSortedSet()
{
var redis = new RedisClient(TestConfig.SingleHost);
double score = 0;
Redis.AddItemToSortedSet("testzset", "value", 1);

redis.AddItemToSortedSet("testset", "value", 1);

using (var pipeline = redis.CreatePipeline())
using (var pipeline = Redis.CreatePipeline())
{
pipeline.QueueCommand(u => u.GetItemScoreInSortedSet("testset", "value"), x =>
pipeline.QueueCommand(u => u.GetItemScoreInSortedSet("testzset", "value"), x =>
{
//score should be assigned to 1 here
score = x;
Expand Down
4 changes: 4 additions & 0 deletions tests/ServiceStack.Redis.Tests/RedisClientTestsBase.cs
Expand Up @@ -20,6 +20,10 @@ protected void Log(string fmt, params object[] args)
public void TestFixtureSetUp()
{
RedisClient.NewFactoryFn = () => new RedisClient(TestConfig.SingleHost);
using (var redis = RedisClient.New())
{
redis.FlushAll();
}
}

[SetUp]
Expand Down

0 comments on commit 41cb476

Please sign in to comment.