当前位置:网站首页>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
边栏推荐
- World Book Day: I'd like to recommend these books
- SSL certificate refund instructions
- Go language slicing operation
- 航芯技术分享 | ACM32 MCU安全特性概述
- Resolve disagrees about version of symbol device_ create
- Synchronously update the newly added and edited data to the list
- 使用Source Insight查看编辑源代码
- 世界读书日:我想推荐这几本书
- 洛谷P3236 [HNOI2014]画框 题解
- Unlock openharmony technology day! The annual event is about to open!
猜你喜欢

梳理网络IP代理的几大用途

ZigBee CC2530 minimum system and register configuration (1)

Can I take the CPDA data analyst certificate for 0 foundation

mysql中 innoDB执行过程分析

Summary of JVM knowledge points - continuously updated

教你快速开发一个 狼人杀微信小程序(附源码)
![leetcode:437. Path sum III [DFS selected or not selected?]](/img/e7/d0983a3251dfaf2cf33b56a12ac149.png)
leetcode:437. Path sum III [DFS selected or not selected?]

Fashion cloud learning - input attribute summary

The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!

Use compressorjs to compress pictures, optimize functions, and compress pictures in all formats
随机推荐
Buuctf Web [gxyctf2019] no dolls
leetcode:437. Path sum III [DFS selected or not selected?]
Record some NPM related problems (messy records)
Web17——EL与JSTL的使用
有趣的IDEA插件推荐,给你的开发工作增添色彩
Fashion cloud learning - input attribute summary
4.DRF 权限&访问频率&过滤&排序
Kubernetes 入門教程
SSM框架系列——数据源配置day2-1
Resolve disagrees about version of symbol device_ create
Buuctf Web [bjdctf2020] zjctf, but so
只是不断地建构平台,不断地收拢流量,并不能够做好产业互联网
Kubernets Getting started tutoriel
XinChaCha Trust SSL Organization Validated
Idea的src子文件下无法创建servlet
bert-base-chinese下载(智取)
Teach you to quickly develop a werewolf killing wechat applet (with source code)
NPDP|产品经理如何做到不会被程序员排斥?
解锁OpenHarmony技术日!年度盛会,即将揭幕!
Customize classloader and implement hot deployment - use loadclass