-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from dotnetcore/dev
Add New Features And Fixed Bugs
- Loading branch information
Showing
43 changed files
with
5,445 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<EasyCachingCorePackageVersion>0.4.5.1</EasyCachingCorePackageVersion> | ||
<EasyCachingCorePackageVersion>0.4.6</EasyCachingCorePackageVersion> | ||
<EasyCachingMemcachedPackageVersion>0.4.5.1</EasyCachingMemcachedPackageVersion> | ||
<EasyCachingRedisPackageVersion>0.4.5.1</EasyCachingRedisPackageVersion> | ||
<EasyCachingRedisPackageVersion>0.4.6</EasyCachingRedisPackageVersion> | ||
<EasyCachingSQLitePackageVersion>0.4.5</EasyCachingSQLitePackageVersion> | ||
<EasyCachingInMemoryPackageVersion>0.4.5.3</EasyCachingInMemoryPackageVersion> | ||
<EasyCachingInMemoryPackageVersion>0.4.6</EasyCachingInMemoryPackageVersion> | ||
<EasyCachingHybridPackageVersion>0.4.5</EasyCachingHybridPackageVersion> | ||
<EasyCachingAspectCorePackageVersion>0.3.2</EasyCachingAspectCorePackageVersion> | ||
<EasyCachingAspectCorePackageVersion>0.3.3</EasyCachingAspectCorePackageVersion> | ||
<EasyCachingCastlePackageVersion>0.3.2</EasyCachingCastlePackageVersion> | ||
<EasyCachingResponseCachingPackageVersion>0.3.0</EasyCachingResponseCachingPackageVersion> | ||
<EasyCachingJsonPackageVersion>0.3.5</EasyCachingJsonPackageVersion> | ||
<EasyCachingMessagePackPackageVersion>0.3.5</EasyCachingMessagePackPackageVersion> | ||
<EasyCachingProtobufPackageVersion>0.3.5</EasyCachingProtobufPackageVersion> | ||
<EasyCachingCSRedisPackageVersion>0.1.0</EasyCachingCSRedisPackageVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/EasyCaching.CSRedis/Configurations/CSRedisDBOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace EasyCaching.CSRedis | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
public class CSRedisDBOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the node rule. | ||
/// </summary> | ||
/// <value>The node rule.</value> | ||
public Func<string, string> NodeRule { get; set; } = null; | ||
|
||
/// <summary> | ||
/// Gets or sets the connection strings. | ||
/// </summary> | ||
/// <value>The connection strings.</value> | ||
public List<string> ConnectionStrings { get; set; } | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/EasyCaching.CSRedis/Configurations/EasyCachingCSRedisClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace EasyCaching.CSRedis | ||
{ | ||
using System; | ||
using global::CSRedis; | ||
|
||
public class EasyCachingCSRedisClient : CSRedisClient | ||
{ | ||
private readonly string _name; | ||
|
||
public string Name { get { return this._name; } } | ||
|
||
public EasyCachingCSRedisClient(string name, string connectionString) | ||
: base(connectionString) | ||
{ | ||
this._name = name; | ||
} | ||
|
||
public EasyCachingCSRedisClient(string name, Func<string, string> NodeRule, params string[] connectionStrings) | ||
: base(NodeRule, connectionStrings) | ||
{ | ||
this._name = name; | ||
} | ||
} | ||
} |
Oops, something went wrong.