当前位置:网站首页>node uses redis
node uses redis
2022-08-05 00:20:00 【Xu Tongbao】
redis download:
https://github.com/tporadowski/redis/releases
Using from the command line:

Access redis through node:
const redis = require('redis')const redisClient = redis.createClient()redisClient.on('error', (err) => console.log('Redis redisClient Error', err))redisClient.connect()module.exports = {redisClient}Pass the interface test:
//redisconst toolsRedis = async(req, res) => {const a = await redisClient.get('a')res.send({code: 200,data: {a},message: 'redis successful'})}

Query all keys:
keys *Clear all keys:
flushall边栏推荐
- 数据类型-整型(C语言)
- "No title"
- 动态上传jar包热部署
- SQL association table update
- could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
- How to automatically push my new articles to my fans (very simple, can't learn to hit me)
- Mysql based
- SQL关联表更新
- 翁恺C语言程序设计网课笔记合集
- Handwritten Distributed Configuration Center (1)
猜你喜欢

oracle创建用户

在线中文姓名生成工具推荐

leetcode:266. 回文全排列

【云原生--Kubernetes】调度约束

How to automatically push my new articles to my fans (very simple, can't learn to hit me)

leetcode经典例题——单词拆分

《MySQL入门很轻松》第2章:MySQL管理工具介绍

简单的顺序结构程序(C语言)

Statistical words (DAY 101) Huazhong University of Science and Technology postgraduate examination questions

《WEB安全渗透测试》(28)Burp Collaborator-dnslog外带技术
随机推荐
SV 类的虚方法 多态
Getting started with 3D modeling for games, what modeling software can I choose?
Metasploit-域名上线隐藏IP
[Cloud Native--Kubernetes] Pod Controller
D - I Hate Non-integer Number (选数的计数dp
Three tips for you to successfully get started with 3D modeling
数据类型及输入输出初探(C语言)
元宇宙:未来我们的每一个日常行为是否都能成为赚钱工具?
canvas 高斯模糊效果
【云原生--Kubernetes】调度约束
RK3399平台开发系列讲解(内核调试篇)2.50、嵌入式产品启动速度优化
redis可视化管理软件Redis Desktop Manager2022
【unity编译器扩展之模型动画拷贝】
软件测试面试题:LoadRunner 分为哪三个模块?
软件测试面试题:手工测试与自动测试有哪些区别?
电赛必备技能___定时ADC+DMA+串口通信
gorm联表查询-实战
软件测试面试题:什么是软件测试?软件测试的目的与原则?
"Relish Podcast" #397 The factory manager is here: How to use technology to empower the law?
QSunSync 七牛云文件同步工具,批量上传