mirror of
https://github.com/ldqk/Masuit.Tools.git
synced 2026-10-29 04:37:01 +08:00
.
This commit is contained in:
@@ -11,9 +11,6 @@ namespace Masuit.Tools.NoSQL
|
||||
{
|
||||
/// <summary>
|
||||
/// Redis服务器连接字符串,默认为:127.0.0.1:6379,allowadmin=true,如:<br/>
|
||||
/// <connectionStrings><br/>
|
||||
/// <add name = "RedisHosts" connectionString="127.0.0.1:6379,allowadmin=true"/><br/>
|
||||
/// </connectionStrings>
|
||||
/// </summary>
|
||||
public static string RedisConnectionString => "127.0.0.1:6379,allowadmin=true";
|
||||
|
||||
|
||||
@@ -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/>
|
||||
/// <connectionStrings><br/>
|
||||
/// <add name = "RedisHosts" connectionString="127.0.0.1:6379,allowadmin=true"/><br/>
|
||||
/// </connectionStrings>
|
||||
/// 构造函数,使用该构造函数需要先配置链接字符串,连接字符串通过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>
|
||||
@@ -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/>
|
||||
/// <connectionStrings><br/>
|
||||
/// <add name = "RedisHosts" connectionString="127.0.0.1:6379,allowadmin=true"/><br/>
|
||||
/// </connectionStrings>
|
||||
/// </summary>
|
||||
/// <param name="dbNum">数据库编号</param>
|
||||
public RedisHelper(int dbNum = 0) : this(dbNum, null)
|
||||
|
||||
Reference in New Issue
Block a user