• 大小: 1.86M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: C#  Redis  官方  

资源简介

其中包含了Redis并发锁、Redis事务、Redis中List<T>/Hash<T>的读取、计数器、Redis队列、RedisTypedClient等示例


因为示例调用的是本机的Redis,所以需确保您的windows下已经安装了Redis,具体安装方式见 http://www.haolizi.net/example/view_8572.html

或者 更改Redis连接的ip地址为你的Redis服务器地址也可以


代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;
using ServiceStack.Redis;
using ServiceStack.Redis.Generic;

namespace SSRedisDemo
{
    public partial class Form1 : Form
    {
        public static IRedisClientsManager clientsManager=null;
        public static IRedisClient redisClient=null;
        public Form1()
        {
            InitializeComponent();
            var count = this.tabControl1.TabCount;
            for (int i = 0; i < count; i++)
            {
                this.tabControl1.GetControl(i).Enabled = false;
            }
            this.tabControl1.GetControl(0).Enabled = true;
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件       41420  2016-07-23 19:57  IRedisClient说明.docx
     目录           0  2016-07-23 17:07  packages\
     文件         130  2016-07-23 17:07  packages\repositories.config
     目录           0  2016-07-23 17:07  packages\ServiceStack.Common.4.0.60\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Common.4.0.60\lib\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Common.4.0.60\lib\net40\
     文件      186880  2016-07-23 17:07  packages\ServiceStack.Common.4.0.60\lib\net40\ServiceStack.Common.dll
     文件       18671  2016-07-23 17:07  packages\ServiceStack.Common.4.0.60\lib\net40\ServiceStack.Common.xml
     文件       69986  2016-07-23 17:07  packages\ServiceStack.Common.4.0.60\ServiceStack.Common.4.0.60.nupkg
     目录           0  2016-07-23 17:07  packages\ServiceStack.Interfaces.4.0.60\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Interfaces.4.0.60\lib\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Interfaces.4.0.60\lib\portable-wp80+sl5+net40+win8+wpa81+monotouch+monoandroid+xamarin.ios10\
     文件      133120  2016-07-23 17:07  packages\ServiceStack.Interfaces.4.0.60\lib\portable-wp80+sl5+net40+win8+wpa81+monotouch+monoandroid+xamarin.ios10\ServiceStack.Interfaces.dll
     文件       51923  2016-07-23 17:07  packages\ServiceStack.Interfaces.4.0.60\ServiceStack.Interfaces.4.0.60.nupkg
     目录           0  2016-07-23 17:07  packages\ServiceStack.Redis.4.0.60\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Redis.4.0.60\lib\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Redis.4.0.60\lib\net40\
     文件      292352  2016-07-23 17:07  packages\ServiceStack.Redis.4.0.60\lib\net40\ServiceStack.Redis.dll
     文件       97530  2016-07-23 17:07  packages\ServiceStack.Redis.4.0.60\lib\net40\ServiceStack.Redis.xml
     文件      129189  2016-07-23 17:07  packages\ServiceStack.Redis.4.0.60\ServiceStack.Redis.4.0.60.nupkg
     目录           0  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\
     目录           0  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\net40\
     文件      353792  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\net40\ServiceStack.Text.dll
     文件       73414  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\net40\ServiceStack.Text.xml
     目录           0  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\portable-net45+win8+monotouch+monoandroid+xamarin.ios10\
     文件      331264  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\portable-net45+win8+monotouch+monoandroid+xamarin.ios10\ServiceStack.Text.dll
     目录           0  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\sl5\
     文件      380928  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\sl5\ServiceStack.Text.dll
     文件      125247  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\lib\sl5\ServiceStack.Text.xml
     文件      464130  2016-07-23 17:07  packages\ServiceStack.Text.4.0.60\ServiceStack.Text.4.0.60.nupkg
............此处省略41个文件信息

评论

共有 条评论