redis
qq_42724459
这个作者很懒,什么都没留下…
展开
-
php redis监控过期key
notify-keyspace-events "Ex" // redis配置文件$redis = new Redis();$redis->pconnect('139.159.252.21', 6379);$redis->setOption(Redis::OPT_READ_TIMEOUT, -1);$redis->psubscribe(array('__keyevent@0__:expired'), 'func');function func($rds, $pattern, $原创 2021-02-19 21:11:37 · 104 阅读 · 0 评论 -
redis docker 搭建集群以及使用 php predis操作集群
// 配置文件下载地址wget http://download.redis.io/redis-stable/redis.confwget http://download.redis.io/redis-stable/sentinel.conf// 启动6个redis容器docker run -p 21001:6379 --name r1 -v /root/config/redis/cluster/r1.conf:/etc/redis/redis.conf -v /root/config/redis原创 2020-12-09 13:32:47 · 133 阅读 · 0 评论