• 大小: 13.33M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: 实例  源码  教程  Redis  

资源简介

Redis是一个开源的,使用C语言编写,面向“键/值”对类型数据的分布式NoSQL数据库系统,特点是高性能,持久存储,适应高并发的应用场景。Redis纯粹为应用而产生,它是一个高性能的key-value数据库,并且提供了多种语言的API

性能测试结果表示SET操作每秒钟可达110000次,GET操作每秒81000次(当然不同的服务器配置性能不同)。

redis目前提供五种数据类型:string(字符串),list(链表), Hash(哈希),set(集合)及zset(sorted set)  (有序集合)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServiceStack.Redis;
namespace RedisApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var client = new RedisClient(“127.0.0.1“ 6379);

            #region 字符串类型
         // client.Set(“name“ “laowang“);
            //string userName= client.Get(“name“);
            //Console.WriteLine(userName);
            //Console.ReadKey();
            #endregion


            //client.SetEntryInHash(“userInfoId“ “name“ “zhangsan“);
            //client.GetHashKeys(“userInfoId“);
            //client.GetHashValues(“userInfoId“);

            //队列.
            //client.EnqueueItemOnList(“name2“ “

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-05-10 09:34  Redis\
     文件      270336  2012-09-19 17:17  Redis\log4net.dll
     目录           0  2014-05-20 23:18  Redis\RedisClient\
     文件      563712  2013-12-25 00:45  Redis\RedisClient\ServiceStack.dll
     文件       33792  2013-12-25 00:45  Redis\RedisClient\ServiceStack.Interfaces.dll
     文件       20480  2013-12-25 00:45  Redis\RedisClient\ServiceStack.ServiceInterface.dll
     目录           0  2014-05-26 20:27  Redis\RedisDemo\
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\Content\
     文件         209  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\Content\App.config.transform
     文件         209  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\Content\Web.config.transform
     文件     1416507  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\Entityframework.5.0.0.nupkg
     文件         778  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\Entityframework.5.0.0.nuspec
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net40\
     文件     1118296  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net40\Entityframework.dll
     文件     1142742  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net40\Entityframework.xml
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net40\zh-Hans\
     文件       71256  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net40\zh-Hans\Entityframework.resources.dll
     文件      478229  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net40\zh-Hans\Entityframework.xml
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net45\
     文件     1116760  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net45\Entityframework.dll
     文件     1138045  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net45\Entityframework.xml
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net45\zh-Hans\
     文件       71256  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net45\zh-Hans\Entityframework.resources.dll
     文件      478229  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\lib\net45\zh-Hans\Entityframework.xml
     目录           0  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\tools\
     文件         969  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\tools\about_Entityframework.help.txt
     文件      134744  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\tools\Entityframework.PowerShell.dll
     文件       15960  2014-05-26 21:03  Redis\RedisDemo\packages\Entityframework.5.0.0\tools\Entityframework.PowerShell.Utility.dll
............此处省略572个文件信息

评论

共有 条评论