当前位置:网站首页>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
边栏推荐
- Baserecyclerviewadapterhelper realizes pull-down refresh and pull-up loading
- 4.DRF 权限&访问频率&过滤&排序
- Synchronously update the newly added and edited data to the list
- Timing role in the project
- Kubernetes 入门教程
- Learning materials
- Keyword interpretation and some APIs in RT thread
- leetcode-791. Custom string sorting
- 软件测试周刊(第68期):解决棘手问题的最上乘方法是:静观其变,顺水推舟。
- Realize several "Postures" in which a box is horizontally and vertically centered in the parent box
猜你喜欢
Idea的src子文件下无法创建servlet
Learning materials
进程虚拟地址空间区域划分
Wonderful review | the sixth issue of "source" - open source economy and industrial investment
STM32 project transplantation: transplantation between chip projects of different models: Ze to C8
Free and open source agricultural Internet of things cloud platform (version: 3.0.1)
SSM framework series - JUnit unit test optimization day2-3
Record the problems encountered in using v-print
mysql中 innoDB执行过程分析
About the 'enum' enumeration type and structure.
随机推荐
Subscribe to Alibaba demo send business messages
SSM framework series - data source configuration day2-1
The El table horizontal scroll bar is fixed at the bottom of the visual window
SSM framework series - JUnit unit test optimization day2-3
box-sizing
[vulnhub range] - DC2
Try the server for one month for free, and attach the tutorial
将新增和编辑的数据同步更新到列表
PC starts multiple wechat at one time
Important knowledge of transport layer (interview, retest, final)
mysql8安装
软件测试周刊(第68期):解决棘手问题的最上乘方法是:静观其变,顺水推舟。
进程虚拟地址空间区域划分
Kubernetes 入門教程
Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy
Huawei cloud MVP email
C, calculation code of parameter points of two-dimensional Bezier curve
世界读书日:我想推荐这几本书
SSL certificate refund instructions
NPDP | how can product managers not be excluded by programmers?