• 大小: 9.71M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: C#  Redis  类库  

资源简介

     C# StackExchange.Redis 操作封装类库,分别封装了Redis五大数据结构(String,Hash,List,Set,ZSet)的增删改查的操作方法,支持Async异步操作。支持Redis分库操作。支持信息队列操作。

     带有单元测试,为每个方法都做了测试。包括Redis队列操作测试

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Wdj.Redis.ConsoleTest
{
    /// 
    /// 
    /// 

    class Program
    {
        static int testNumber = 10000;
        static void Main(string[] args)
        {

            ReadWriteTest();

            //ListTest();

            Console.ReadLine();
        }
        /// 
        /// 读写测试
        /// 

        static void ReadWriteTest()
        {            
            string key = “TestTimeKey“;
            var redis = Helper.RedisHelper.StringService;
            Stopwatch sw = new Stopwatch();

            sw.Restart();
            for 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.    122880  2017-05-16 15:29  Wdj.Redis.Helper4.5\.vs\Wdj.Redis.Helper\v15\.suo

     文件       1191  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\net45\MSTest.TestAdapter.props

     文件       3406  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\net45\MSTest.TestAdapter.targets

     文件      31640  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\netcoreapp1.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll

     文件       1180  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\netcoreapp1.0\MSTest.TestAdapter.props

     文件      32152  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\uap10.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll

     文件       1180  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\uap10.0\MSTest.TestAdapter.props

     文件       3548  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\uap10.0\MSTest.TestAdapter.targets

     文件      30096  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\cs\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll

     文件      24512  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\cs\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll

     文件      27000  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\cs\Microsoft.VisualStudio.TestPlatform.Testframework.resources.dll

     文件      31272  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\de\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll

     文件      25176  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\de\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll

     文件      27664  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\de\Microsoft.VisualStudio.TestPlatform.Testframework.resources.dll

     文件      30248  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\es\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll

     文件      25176  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\es\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll

     文件      27152  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\es\Microsoft.VisualStudio.TestPlatform.Testframework.resources.dll

     文件      30760  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\fr\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll

     文件      25176  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\fr\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll

     文件      27152  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\fr\Microsoft.VisualStudio.TestPlatform.Testframework.resources.dll

     文件      30760  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\it\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll

     文件      25176  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\it\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll

     文件      27152  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\it\Microsoft.VisualStudio.TestPlatform.Testframework.resources.dll

     文件      32296  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\ja\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll

     文件      25688  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\ja\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll

     文件      28688  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\ja\Microsoft.VisualStudio.TestPlatform.Testframework.resources.dll

     文件      31272  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\ko\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll

     文件      25176  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\ko\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll

     文件      27664  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\ko\Microsoft.VisualStudio.TestPlatform.Testframework.resources.dll

     文件     114016  2017-04-20 06:43  Wdj.Redis.Helper4.5\packages\MSTest.TestAdapter.1.1.17\build\_common\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll

............此处省略341个文件信息

评论

共有 条评论