
redis
十字蹄花
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Redis集合取交集 Zinterstore 命令 及使用jedis使用Zinterstore方法
官方语法: ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] 现在我有一个集合用来记录分组的文章,其中一个分组下有三篇文章,如下: 还有一个集合记录了所有文章的发布时间,如下: 需求:得到当前分组的发布时间,并且排好序。 用命令实现如下: ZINTERSTORE score:programming 2 groups:programming score原创 2021-11-29 21:30:00 · 966 阅读 · 0 评论 -
linux 命令行 Redis (error) NOAUTH Authentication required.解决
出现认证问题,是因为redis设置了认证密码。 启动后输入下面命令 127.0.0.1:6379> auth yourpassword 我的密码是redis123 127.0.0.1:6379> set name hello (error) NOAUTH Authentication required. 127.0.0.1:6379> (error) NOAUTH Authentication required. (error) ERR unknown command '(error)'原创 2021-11-25 16:18:28 · 3491 阅读 · 0 评论