当前位置:网站首页>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
边栏推荐
- Wonderful review | the sixth issue of "source" - open source economy and industrial investment
- Kubernets Getting started tutoriel
- Calculate the past date and days online, and calculate the number of live days
- MySQL supports IP access
- Free and open source intelligent charging pile SaaS cloud platform of Internet of things
- Luogu p5540 [balkanoi2011] timeismoney | minimum product spanning tree problem solution
- Go language mapping operation
- 大家帮我看一下这是啥情况,MySQL5.5的。谢了
- NPDP|产品经理如何做到不会被程序员排斥?
- Aviation core technology sharing | overview of safety characteristics of acm32 MCU
猜你喜欢
Homomorphic encryption technology learning
Free and open source agricultural Internet of things cloud platform (version: 3.0.1)
How to click an object to play an animation
Wonderful review | the sixth issue of "source" - open source economy and industrial investment
风尚云网学习-h5的input:type属性的image属性
Deploying MySQL in cloud native kubesphere
航芯技术分享 | ACM32 MCU安全特性概述
Realize several "Postures" in which a box is horizontally and vertically centered in the parent box
Introduction to kubernetes
Redis deployment of cloud native kubesphere
随机推荐
World Book Day: I'd like to recommend these books
SSM框架系列——数据源配置day2-1
Resolve disagrees about version of symbol device_ create
Common problems of unity (1)
Sort out several uses of network IP agent
0基础可以考CPDA数据分析师证书吗
Remote sensing image classification and recognition system based on convolutional neural network
Aviation core technology sharing | overview of safety characteristics of acm32 MCU
SSL certificate refund instructions
CVPR 2022 & ntire 2022 | the first transformer for hyperspectral image reconstruction
Packet capturing and sorting -- TCP protocol [8]
进程虚拟地址空间区域划分
The continuous construction of the Internet industry platform is not only able to collect traffic
将新增和编辑的数据同步更新到列表
Learning materials
Introduction to kubernetes
22. Bracket generation
STM32 is connected to the motor drive, the DuPont line supplies power, and then the back burning problem
大家帮我看一下这是啥情况,MySQL5.5的。谢了
Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy