Spring Boot整合redis sentinel和读写分离
9月 12, 2023 |
Nix.Huang
spring boot配置项 spring: redis: .sentinel: master: mymast […more]
spring boot配置项 spring: redis: .sentinel: master: mymast […more]
redis SET SMISMEMBER操作是O(N) 时间复杂度,如果集合中元素的cardinality 比 […more]
1 2 3 4 5 6 7 8 9 10 |
String pattern = "test:1023*"; List<Object> listOfObjects = new ArrayList<>(); Cursor<Map.Entry<Object, Object>> cursorMap = redisTemplate.boundHashOps("test_hash") .scan(ScanOptions.scanOptions().match(pattern).count(100).build()); while (cursorMap.hasNext()) { listOfObjects.add(cursorMap.next().getKey()); } cursorMap.close(); |
第一次hscan 传入cursor=0, 返 […more]
-x509产生自签名证书 openssl req -x509 -newkey rsa:2048 -keyout […more]
yum install strongswan certbot firewalld -y # 确保域名指向本机外 […more]
编译安装 freeredius 在centos安装 yum install libtalloc-devel l […more]
安装软件
1 2 3 4 5 |
yum install dnsmasq -y systemctl enable dnsmasq systemctl start dnsmasq netstat -lnp|grep dnsmasq #检查是否成功占用53端口 |
添加解析记录 [crayon-67 […more]
MAC 方式 KeyGenerator keyGenerator = KeyGenerator.getInst […more]