NewLife/NewLife.Redis

发布0101
大石头 编写于 2020-01-02 00:03:19
共计: 修改6个文件,增加21行、删除12行。
修改 +10 -1
修改 +5 -5
修改 +1 -1
修改 +2 -2
修改 +1 -1
修改 +2 -2
修改 +10 -1
diff --git a/NewLife.Redis/FullRedis.cs b/NewLife.Redis/FullRedis.cs
index 1f119a7..c37c0e3 100644
--- a/NewLife.Redis/FullRedis.cs
+++ b/NewLife.Redis/FullRedis.cs
@@ -8,7 +8,7 @@ using NewLife.Model;
 
 namespace NewLife.Caching
 {
-    /// <summary>Redis缓存</summary>
+    /// <summary>增强版Redis</summary>
     public class FullRedis : Redis
     {
         #region 静态
@@ -41,6 +41,15 @@ namespace NewLife.Caching
         #endregion
 
         #region 构造
+        /// <summary>实例化增强版Redis</summary>
+        public FullRedis() : base() { }
+
+        /// <summary>实例化增强版Redis</summary>
+        /// <param name="server"></param>
+        /// <param name="password"></param>
+        /// <param name="db"></param>
+        public FullRedis(String server, String password, Int32 db) : base(server, password, db) { }
+
         /// <summary>初始化配置</summary>
         /// <param name="config"></param>
         public override void Init(String config)
修改 +5 -5
diff --git a/NewLife.Redis/NewLife.Redis.csproj b/NewLife.Redis/NewLife.Redis.csproj
index 1070061..3707be1 100644
--- a/NewLife.Redis/NewLife.Redis.csproj
+++ b/NewLife.Redis/NewLife.Redis.csproj
@@ -6,10 +6,10 @@
     <AssemblyTitle>新生命Redis缓存组件</AssemblyTitle>
     <Description>Redis基础操作、列表结构、哈希结构、Set结构,经过日均100亿次调用量的项目验证</Description>
     <Company>新生命开发团队</Company>
-    <Copyright>©2002-2019 新生命开发团队</Copyright>
-    <Version>3.3.2019.1117</Version>
-    <FileVersion>3.3.2019.1117</FileVersion>
-    <AssemblyVersion>3.3.*</AssemblyVersion>
+    <Copyright>©2002-2020 新生命开发团队</Copyright>
+    <Version>3.4.2020.0101</Version>
+    <FileVersion>3.4.2020.0101</FileVersion>
+    <AssemblyVersion>3.4.*</AssemblyVersion>
     <Deterministic>false</Deterministic>
     <OutputPath>..\Bin</OutputPath>
     <DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
@@ -44,7 +44,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="NewLife.Core" Version="8.4.2019.1212" />
+    <PackageReference Include="NewLife.Core" Version="8.5.2020.101" />
   </ItemGroup>
 
   <ItemGroup>
修改 +1 -1
diff --git a/Test/packages.config b/Test/packages.config
index 1575e35..884acdd 100644
--- a/Test/packages.config
+++ b/Test/packages.config
@@ -1,4 +1,4 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packages>
-  <package id="NewLife.Core" version="8.4.2019.1212" targetFramework="net45" />
+  <package id="NewLife.Core" version="8.5.2020.101" targetFramework="net45" />
 </packages>
\ No newline at end of file
修改 +2 -2
diff --git a/Test/Test.csproj b/Test/Test.csproj
index e329134..0e7e750 100644
--- a/Test/Test.csproj
+++ b/Test/Test.csproj
@@ -32,8 +32,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="Microsoft.VisualBasic" />
-    <Reference Include="NewLife.Core, Version=8.4.7285.42441, Culture=neutral, processorArchitecture=MSIL">
-      <HintPath>..\packages\NewLife.Core.8.4.2019.1212\lib\net45\NewLife.Core.dll</HintPath>
+    <Reference Include="NewLife.Core, Version=8.5.7305.42330, Culture=neutral, processorArchitecture=MSIL">
+      <HintPath>..\packages\NewLife.Core.8.5.2020.101\lib\net45\NewLife.Core.dll</HintPath>
     </Reference>
     <Reference Include="System" />
     <Reference Include="System.Core" />
修改 +1 -1
diff --git a/Test2/Test2.csproj b/Test2/Test2.csproj
index ba66926..38ca2e6 100644
--- a/Test2/Test2.csproj
+++ b/Test2/Test2.csproj
@@ -6,7 +6,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="NewLife.Core" Version="8.4.2019.1212" />
+    <PackageReference Include="NewLife.Core" Version="8.5.2020.101" />
   </ItemGroup>
 
   <ItemGroup>
修改 +2 -2
diff --git a/XUnitTest/BasicTest.cs b/XUnitTest/BasicTest.cs
index 1bed798..639cc6b 100644
--- a/XUnitTest/BasicTest.cs
+++ b/XUnitTest/BasicTest.cs
@@ -12,7 +12,7 @@ namespace XUnitTest
         public BasicTest()
         {
             FullRedis.Register();
-            var rds = FullRedis.Create("127.0.0.1:6379", "newlife", 2);
+            var rds = new FullRedis("127.0.0.1:6379", null, 2);
 
             Cache = rds as FullRedis;
         }
@@ -20,7 +20,7 @@ namespace XUnitTest
         [Fact(DisplayName = "��Ϣ����", Timeout = 1000)]
         public void InfoTest()
         {
-            var inf = Cache.Execute<String>(null, client => client.Execute<String>("info"));
+            var inf = Cache.Execute(null, client => client.Execute<String>("info"));
             Assert.NotNull(inf);
         }