Javascript Node.js - Redis 教程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5656991/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 18:18:29  来源:igfitidea点击:

Node.js - Redis tutorial

javascriptnode.jsredis

提问by Will03uk

How do you use the node.js redis library, what are the core concepts of redis and what does all the redis functions do, e.g. hset, hget etc? Could I have some example.

你如何使用node.js redis 库,redis 的核心概念是什么,所有redis 函数都做了什么,例如hset、hget 等?能不能举个例子。

回答by yojimbo87

How do you use the nodejs redis library

你如何使用nodejs redis库

Check out node_redisand its examples.

查看node_redis及其示例

what are the core concepts of redis

redis的核心概念是什么

You should look at redis data typesin order to get a bigger picture of its concepts and data types.

您应该查看redis 数据类型,以便更全面地了解其概念和数据类型。

what does all the redis functions do

所有 redis 函数都做了什么

Try to look at this introductionin order to better understand its commands.

试着看看这个介绍,以便更好地理解它的命令

回答by feklee

The book Learning Nodehas Chapter 9 Structured Data with Node and Redis.

学习节点一书有第 9 章结构化数据与节点和 Redis

回答by Raynos

Here are the redis documentation.

这是redis 文档

And here is the nodejs documentation.

这是nodejs 文档

What you're using in nodejs should just be a redis-driver. So using redis in nodejs is the same as using redis in any other environment.

您在 nodejs 中使用的应该只是一个 redis 驱动程序。所以在 nodejs 中使用 redis 与在任何其他环境中使用 redis 是一样的。