07 2021 档案

摘要:详情可看:https://github.com/MyCATApache/Mycat-Server 下载地址:http://dl.mycat.org.cn/ linux: ./mycat start 启动 ./mycat stop 停止 ./mycat console 前台运行 ./mycat ins 阅读全文
posted @ 2021-07-31 21:50 余生请多指教ANT 阅读(205) 评论(0) 推荐(0) 编辑
摘要:分库分表:解决思路,Dao-->ORM >JDBC-->Proxy-->Server 1分库 在Dao层进行选择数据库 package org.springframework.jdbc.datasource.lookup下的 AbstractRoutingDataSource实现多数据源切换 Dao 阅读全文
posted @ 2021-07-31 16:48 余生请多指教ANT 阅读(87) 评论(0) 推荐(0) 编辑
摘要://无返回值 CompletableFuture completableFuture0=CompletableFuture.runAsync(()); //无返回值执行器 CompletableFuture completableFuture0_0=CompletableFuture.runAsyn 阅读全文
posted @ 2021-07-22 22:26 余生请多指教ANT 阅读(239) 评论(0) 推荐(0) 编辑
摘要:// 创建布隆过滤器,设置存储的数据类型,预期数据量,误判率 (必须大于0,小于1) int insertions = 10000000; double fpp = 0.0001; BloomFilter<String> bloomFilter = BloomFilter.create(Funnel 阅读全文
posted @ 2021-07-19 23:10 余生请多指教ANT 阅读(39) 评论(0) 推荐(0) 编辑
摘要:String lua="local num=redis.call('incr',KEYS[1])\n"+"if tonumber(num)==1 then\n"+ "\tredis.call('expire',KEYS[1],ARGV[1])\n"+ "\treturn 1\n"+"elseif t 阅读全文
posted @ 2021-07-11 22:01 余生请多指教ANT 阅读(100) 评论(0) 推荐(0) 编辑
摘要:Jedis jedis0 = new Jedis("localhost", 6379); jedis0.auth("123456"); Pipeline pipelined = jedis0.pipelined(); Set<String> keys = jedis0.keys("batch*"); 阅读全文
posted @ 2021-07-08 23:01 余生请多指教ANT 阅读(2602) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示