Redis Scard 命令
Redis 教程
· 2019-03-07 16:26:54
Redis Scard 命令返回集合中元素的数量。
语法
redis Scard 命令基本语法如下:
redis 127.0.0.1:6379> SCARD KEY_NAME
可用版本
>= 1.0.0
返回值
集合的数量。 当集合 key 不存在时,返回 0 。
实例
redis 127.0.0.1:6379> SADD myset "hello" (integer) 1 redis 127.0.0.1:6379> SADD myset "foo" (integer) 1 redis 127.0.0.1:6379> SADD myset "hello" (integer) 0 redis 127.0.0.1:6379> SCARD myset (integer) 2
点击查看所有 Redis 教程 文章: https://codercto.com/courses/l/33.html
Pro HTML5 and CSS3 Design Patterns
Michael Bowers / Apress / 2011-11-15 / GBP 35.50
Pro HTML5 and CSS3 Design Patterns is a reference book and a cookbook on how to style web pages using CSS3 and HTML5. It contains 350 ready--to--use patterns (CSS3 and HTML5 code snippets) that you ca......一起来看看 《Pro HTML5 and CSS3 Design Patterns》 这本书的介绍吧!