This commit is contained in:
ldqk
2017-12-08 11:25:30 +08:00
parent 59e115f30f
commit 697605c0f5
4 changed files with 18 additions and 8 deletions
@@ -11,9 +11,6 @@ namespace Masuit.Tools.NoSQL
{
/// <summary>
/// Redis服务器连接字符串,默认为:127.0.0.1:6379,allowadmin=true,如:<br/>
/// &lt;connectionStrings&gt;<br/>
/// &lt;add name = "RedisHosts" connectionString="127.0.0.1:6379,allowadmin=true"/&gt;<br/>
/// &lt;/connectionStrings&gt;
/// </summary>
public static string RedisConnectionString => "127.0.0.1:6379,allowadmin=true";
+1 -4
View File
@@ -22,10 +22,7 @@ namespace Masuit.Tools.NoSQL
#region 构造函数
/// <summary>
/// 构造函数,使用该构造函数需要先在config中配置链接字符串,连接字符串在config配置文件中的ConnectionStrings节下配置,name固定为RedisHosts,值的格式:127.0.0.1:6379,allowadmin=true,若未正确配置,将按默认值“127.0.0.1:6379,allowadmin=true”进行操作,如:<br/>
/// &lt;connectionStrings&gt;<br/>
/// &lt;add name = "RedisHosts" connectionString="127.0.0.1:6379,allowadmin=true"/&gt;<br/>
/// &lt;/connectionStrings&gt;
/// 构造函数,使用该构造函数需要先配置链接字符串,连接字符串通过RedisConnectionHelp.RedisConnectionString属性进行获取,若未正确配置,将按默认值“127.0.0.1:6379,allowadmin=true”进行操作<br/>
/// </summary>
/// <param name="dbNum">数据库编号</param>
public RedisHelper(int dbNum = 0) : this(dbNum, null)
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<TargetFramework>netstandard2.0</TargetFramework>
<PublishDir>bin\Release\PublishOutput</PublishDir>
</PropertyGroup>
</Project>
+4 -1
View File
@@ -22,7 +22,10 @@ namespace Masuit.Tools.NoSQL
#region 构造函数
/// <summary>
/// 构造函数,使用该构造函数需要先配置链接字符串,连接字符串通过RedisConnectionHelp.RedisConnectionString属性进行获取,若未正确配置,将按默认值“127.0.0.1:6379,allowadmin=true”进行操作<br/>
/// 构造函数,使用该构造函数需要先在config中配置链接字符串,连接字符串在config配置文件中的ConnectionStrings节下配置,name固定为RedisHosts,值的格式:127.0.0.1:6379,allowadmin=true,若未正确配置,将按默认值“127.0.0.1:6379,allowadmin=true”进行操作,如:<br/>
/// &lt;connectionStrings&gt;<br/>
/// &lt;add name = "RedisHosts" connectionString="127.0.0.1:6379,allowadmin=true"/&gt;<br/>
/// &lt;/connectionStrings&gt;
/// </summary>
/// <param name="dbNum">数据库编号</param>
public RedisHelper(int dbNum = 0) : this(dbNum, null)