摘要:
1 /// <summary> 2 /// Redis操作 3 /// </summary> 4 public class RedisHelper 5 { 6 7 //static NewtonsoftSerializer serializer = new NewtonsoftSerializer( 阅读全文
摘要:
一,引入dll 1.ServiceStack.Common.dll 2.ServiceStack.Interfaces.dll 3.ServiceStack.Redis.dll 4.ServiceStack.Text.dll 二,修改配置文件 在你的配置文件中加入如下的代码: <appSetting 阅读全文
摘要:
Redis配置主从 主IP :端口 192.168.0.103 6666 从IP:端口 192.168.0.108 3333 提示:做主从配置的时候 可以用到 Sentinel 哨兵 功能可以实现 主redis挂了之后 自动切到另外一个 redis 配置从库 (1)安装服务: redis-serve 阅读全文
摘要:
一.redis 设置密码 使用下载好的 redis-cli.exe 指令: 1.设置密码: config set requirepass 123456 2.查看:info(验证无法通过) 3.授权登陆 auth 123456 二.Redis 更改端口(如从 6379 改到 6820) 1.打开下图: 阅读全文
摘要:
一.认识Redis 1. Redis 是一个高性能的key-value数据库。 2. 它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。 3.周期性的把更新的数据写入磁盘或者把修改操 阅读全文