当前位置:网站首页>jmeter操作redis
jmeter操作redis
2022-04-23 12:57:00 【qyykaola】
1.安装Redis Data Set
选项-plugins Manager-搜索Redis Data Set,安装
2.线程组-添加-配置元件
beanshell脚本,清除redis
import redis.clients.jedis.Jedis;
import org.apache.commons.lang3.StringUtils;
String host = ""; //服务器地址
int port = ; //端口号
String password = ""; //redis密码
int index = 11; //redis db 缓存区
Jedis jedis = new Jedis(host, port);
if(StringUtils.isNotBlank(password)){
jedis.auth(password);
}
jedis.select(index); //选择redis db
String res = jedis.flushDB(); //清除redis
return res;
版权声明
本文为[qyykaola]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qyykaola/article/details/124336907
边栏推荐
- CVPR 2022 & ntire 2022 | the first transformer for hyperspectral image reconstruction
- V-model binding value in El select, data echo only displays value, not label
- Recommended website for drawing result map
- The quill editor image zooms, multiple rich text boxes are used on one page, and the quill editor upload image address is the server address
- Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
- STM32 control stepper motor (ULN2003 + 28byj)
- Plato farm - a game of farm metauniverse with Plato as the goal
- Servlet监听器&过滤器介绍
- 有趣的IDEA插件推荐,给你的开发工作增添色彩
- Labels and paths
猜你喜欢
The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
SSM框架系列——数据源配置day2-1
Software testing weekly (issue 68): the best way to solve difficult problems is to wait and see the changes and push the boat with the current.
The El table horizontal scroll bar is fixed at the bottom of the visual window
Use source insight to view and edit source code
Mysql8 installation
[Blue Bridge Cup] April 17 provincial competition brushing training (the first three questions)
如何防止网站被黑客入侵篡改
云原生KubeSphere部署Mysql
梳理網絡IP代理的幾大用途
随机推荐
Jupiter notebook installation
Mysql8 installation
Free and open source charging pile Internet of things cloud platform
Get the punch in record of nailing attendance machine
Plato farm - a game of farm metauniverse with Plato as the goal
After the data of El table is updated, the data in the page is not updated this$ Forceupdate() has no effect
Go language slicing operation
Kubernetes 入門教程
NPDP | how can product managers not be excluded by programmers?
The El table horizontal scroll bar is fixed at the bottom of the visual window
BaseRecyclerViewAdapterHelper 实现下拉刷新和上拉加载
风尚云网学习-h5的input:type属性的image属性
洛谷P3236 [HNOI2014]画框 题解
ZigBee CC2530 minimum system and register configuration (1)
梳理網絡IP代理的幾大用途
SSM framework series - data source configuration day2-1
产品开发都应该知道的8个网站,增强工作体验
21 天学习MongoDB笔记
将新增和编辑的数据同步更新到列表
【每日一题】棋盘问题