当前位置:网站首页>JMeter operation redis
JMeter operation redis
2022-04-23 12:58:00 【qyykaola】
1. install Redis Data Set
Options -plugins Manager- Search for Redis Data Set, install
2. Thread group - add to - The configuration element


beanshell Script , eliminate redis
import redis.clients.jedis.Jedis;
import org.apache.commons.lang3.StringUtils;
String host = ""; // Server address
int port = ; // Port number
String password = ""; //redis password
int index = 11; //redis db Buffer zone
Jedis jedis = new Jedis(host, port);
if(StringUtils.isNotBlank(password)){
jedis.auth(password);
}
jedis.select(index); // choice redis db
String res = jedis.flushDB(); // eliminate redis
return res;
版权声明
本文为[qyykaola]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231257078520.html
边栏推荐
- Free and open source intelligent charging pile SaaS cloud platform of Internet of things
- [csnote] ER diagram
- World Book Day: I'd like to recommend these books
- Timing role in the project
- Teach you to quickly develop a werewolf killing wechat applet (with source code)
- Record some NPM related problems (messy records)
- Luogu p3236 [hnoi2014] picture frame solution
- 4.DRF 权限&访问频率&过滤&排序
- Go language slicing operation
- 21 天学习MongoDB笔记
猜你喜欢

Date time type in database

产品开发都应该知道的8个网站,增强工作体验

风尚云网学习-h5的input:type属性的image属性

Record the problems encountered in using v-print

在线计算过往日期天数,计算活了多少天

How to click an object to play an animation

jmeter操作redis

leetcode:437. 路径总和 III【dfs 选还是不选?】

软件测试周刊(第68期):解决棘手问题的最上乘方法是:静观其变,顺水推舟。
![Packet capturing and sorting -- TCP protocol [8]](/img/ae/4957a997af725a1bf3f61cb24fc717.png)
Packet capturing and sorting -- TCP protocol [8]
随机推荐
Custom nail robot alarm
31. Next arrangement
Please help me see what this is, mysql5 5. Thanks
ZigBee CC2530 minimum system and register configuration (1)
[csnote] ER diagram
leetcode:437. 路径总和 III【dfs 选还是不选?】
云原生KubeSphere部署Mysql
Process virtual address space partition
Homomorphic encryption technology learning
Byte warehouse intern interview SQL questions
Community version Alibaba MQ ordinary message sending subscription demo
STM32 is connected to the motor drive, the DuPont line supplies power, and then the back burning problem
Kubernetes 入門教程
Can I take the CPDA data analyst certificate for 0 foundation
SSM框架系列——数据源配置day2-1
Keyword interpretation and some APIs in RT thread
Baserecyclerviewadapterhelper realizes pull-down refresh and pull-up loading
PHP generates JSON to process Chinese
SSM framework series - annotation development day2-2
Kubernets Getting started tutoriel