上文是详解
下文是学习小结
1.设置读写分离两个Redis目录MasterRedis-2.8.19 和 SlaveRedis-2.8.19
2.修改配置文件redis.conf找到maxheap 下面配置maxheap 1024000000
3.启动读写服务
4.在项目中调用
a) 引用DLL :ServiceStack ServiceStack.Interfaces ServiceStack.ServiceInterface
b) 添加RedisBase封装类 实现Redis读写分离。
c) 配置webconfig做Redis服务链接(读写带端口)。
d) Redis的使用,及封装类的使用。
4.在项目中调用(RedisSession共享)
a) 在3的基础上添加RedisSession帮助类。
b) RedisSession帮助类的使用。