2021年3月8日

redis布隆过滤器

摘要: https://github.com/RedisBloom/RedisBloom unzip redis-server /usr/src/redis/conf/redis.conf --loadmodule /usr/src/module/RedisBloom-2.0.3/redisbloom.so 阅读全文

posted @ 2021-03-08 20:46 木林coder 阅读(72) 评论(0) 推荐(0)

2021年3月7日

cache.lua--自带加锁功能方式缓存击穿

摘要: local key = ngx.re.match(ngx.var.request_uri,"/([0-9]+).html") local mlcache = require "resty.mlcache" local function fetch_shop(aaa) ngx.log(ngx.ERR, 阅读全文

posted @ 2021-03-07 18:46 木林coder 阅读(177) 评论(0) 推荐(0)

lua-resty-mlcache

摘要: opm search mlcache opm --install-dir=/usr/local/openresty/lualib/project/common/mlcache/ get thibaultcha/lua-resty-mlcache 阅读全文

posted @ 2021-03-07 18:44 木林coder 阅读(360) 评论(0) 推荐(0)

aapplication.lua

摘要: -- ngx.header_content_type='text/plain' --ngx.say(123) local ngx_re_split=require("ngx.re").split local ip_addr = ngx.shared.redis_cluster_addr:get('r 阅读全文

posted @ 2021-03-07 15:42 木林coder 阅读(91) 评论(0) 推荐(0)

init.lua

摘要: local delay = 5 local handler handler = function (premature) --ngx.log(ngx.ERR," timer-do") local resty_consul = require('resty.consul') local consul 阅读全文

posted @ 2021-03-07 15:41 木林coder 阅读(636) 评论(0) 推荐(0)

lock.lua

摘要: local rety_lock = require "resty.lock" local cache = ngx.shared.my_cache local key = ngx.re.match(ngx.var.request_uri,"/([0-9]+).html") if type(key) = 阅读全文

posted @ 2021-03-07 15:40 木林coder 阅读(202) 评论(0) 推荐(0)

2021年3月6日

redis 开启 cluster

摘要: https://blog.csdn.net/weixin_44045802/article/details/108535569 必须开通6379和16379端口 开启集群模式 cluster-enabled yes 集群节点超时时间 cluster-node-timeout 15000 集群配置文件 阅读全文

posted @ 2021-03-06 12:44 木林coder 阅读(44) 评论(0) 推荐(0)

2021年3月4日

lua-resty-consul

摘要: yum install perl-Digest-MD5 -y opm search consul opm --install-dir=/usr/local/openresty/lualib/project/common get hamishforbes/lua-resty-consul /usr/d 阅读全文

posted @ 2021-03-04 17:32 木林coder 阅读(178) 评论(0) 推荐(0)

lua在nginx中的使用范围

摘要: https://blog.csdn.net/ygm_linux/article/details/53534933 阅读全文

posted @ 2021-03-04 17:19 木林coder 阅读(219) 评论(0) 推荐(0)

2021年3月3日

resty-redis-cluster下载地址

摘要: https://github.com/steve0511/resty-redis-cluster 阅读全文

posted @ 2021-03-03 11:24 木林coder 阅读(172) 评论(0) 推荐(0)

导航