码迷,mamicode.com
首页 > Windows程序 > 详细

初探Redis+Net在Windows环境下的使用

时间:2016-12-19 14:13:38      阅读:306      评论:0      收藏:0      [点我收藏+]

标签:cti   ash   配置文件   ide   range   conf   rip   group   windows环境   

  Redis官网地址:https://redis.io/;Redis官方暂时不支持Windows环境,但是MicroSoft Open Tech group开发了一个Windows平台下运行的版本。

  Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster. 

第一步:下载Redis(Windows版本),https://github.com/MSOpenTech/redis;

第二步:打开编译项目生成可执行文件

技术分享

技术分享

技术分享

第三步:启动Redis

将生成的可执行文件和第一步down的配置文件redis.conf拷贝到一个自定义目录中,执行redis-server.exe,启动Redis服务;

技术分享

技术分享

Note that in order to read the configuration file, Redis must be started with the file path as first argument!

技术分享

 

第四步:下载C#下的客户端ServiceStack.Redis,开源地址:https://github.com/ServiceStack/ServiceStack.Redis

可以用NuGet来下载并安装

技术分享

第五步:使用Redis

 技术分享

 

初探Redis+Net在Windows环境下的使用

标签:cti   ash   配置文件   ide   range   conf   rip   group   windows环境   

原文地址:http://www.cnblogs.com/mingjia/p/6180422.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!