Returns the size of a list identified by Key. If the list didn't exist or is empty, the command returns 0. If the data type identified by Key is not a list, the command return FALSE.

根据KEY返回该KEY代表的LIST的长度,如果这个LIST不存在或者为空,那么ISIZE返回0,如果指定的KEY的数据类型不是LIST或者不为空,那么返回FALSE。所以在这里多说一句,当用ISize返回判断值的时候,===就有用处了,这里FLASE和0是两个概念了。

Parameters

Key

Return value

LONG The size of the list identified by Key exists.

如果KEY存在并且为LIST且有元素,那么返回KEY的长度,为空或者不存在返回0。

BOOL FALSE if the data type identified by Key is not list

如果KEY的数据类型不为空或者LIST,则返回FALSE。

Example

$redis->rPush('key1', 'A');

$redis->rPush('key1', 'B');

$redis->rPush('key1', 'C'); /* key1 => [ 'A', 'B', 'C' ] */

$redis->lSize('key1');/* 3 */

$redis->rPop('key1');

$redis->lSize('key1');/* 2 */

php中有size_t函数吗,lSize 命令/方法/函数相关推荐

  1. php使用hset报错,hSet 命令/方法/函数

    Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned. 添加一 ...

  2. php insert方法,lInsert 命令/方法/函数

    Insert value in the list before or after the pivot value. the parameter options specify the position ...

  3. hset php,hSet 命令/方法/函数

    Adds a value to the hash stored at key. If this value is already in the hash, FALSE is returned. 添加一 ...

  4. PHP执行命令的函数有,php的命令执行函数

    php 动态执行 函数,PHP学习 你的知识信息已经过时了吗? ,php自动执行函数,php的命令执行函数 PHP 为执行外部命令提供大量函数_历史学_高等教育_教育专区.php基础PHP 为执行外部 ...

  5. MATLAB中函数模式和命令模式的区别

    FUNCTION FORMAT A command in this format consists of the function name followed by one or more argum ...

  6. JS对象 数组排序sort() sort()方法使数组中的元素按照一定的顺序排列。 语法: arrayObject.sort(方法函数)...

    数组排序sort() sort()方法使数组中的元素按照一定的顺序排列. 语法: arrayObject.sort(方法函数) 参数说明: 1.如果不指定<方法函数>,则按unicode码 ...

  7. html字符串长度函数,最常用的20个javascript方法函数

    最常用的20个javascript方法函数 常用的`javascript方法函数有哪些?下面YJBYS小编为你盘点,废话不说,直接放码! 1字符串长度截取 function cutstr(str, l ...

  8. c++ 调用cmd命令行函数 可隐藏黑框 四种方法总结

    在很多情况下,不得不调用cmd命令行,去实现一系列功能,总结靠谱方法两种如下: 方法一:可接受cmd命令行黑框一闪(推荐星数::可传值几乎任何cmd命令) string string getCmdRe ...

  9. Java方法01 方法(函数)定义、调用、值传递、重载、命令行传递参数

    Java 方法的定义.调用.值传递.重载.命令行传递参数 1. 什么是方法? 2. 方法的定义和调用 3. 值传递和引用传递 4. 方法的重载 5. 命令行传递参数 6. 可变参数(输入参数的数量不确 ...

最新文章

  1. vuejs学习笔记(1)--属性,事件绑定,ajax
  2. web项目启动时 初始化加载系统参数 获取无法自动注入的服务
  3. wxpython组件SplitterWindow 的简单使用
  4. ASP.NET项目在VS中F5与Ctrl+F5的区别
  5. java取两个10_30的随机整数_产生10个[30,90]区间上的随机整数,然后对其用选择法...
  6. soap接口怎么不返回tuple python_Python 中的接口
  7. CAN总线电平(隐性与显性)
  8. python----iter\next
  9. Jenkins 构建触发器操作详解
  10. 图形推理1000题pdf_2019和平区一模24题解析
  11. 2019年全国大学生电子竞赛 | 电磁炮制作教程
  12. (使用python+adb)能实现王者荣耀自动刷金币?
  13. Failed opening .rdb for saving: Permission denied
  14. hostapd_cli 使用命令
  15. usnews2015美国大学计算机排名,2019USNews美国大学计算机专业排名
  16. 用Cyberduck访问iPhone/ iPod Touch
  17. 最大似然估计(Maximum Likelihood,ML)
  18. 厚脸皮,是一个人最了不起的才华
  19. Java之Thread.sleep()浅析
  20. 老毛桃制作装机版u盘

热门文章

  1. oracle每天自增长,oracle的自增长
  2. MySQL 5.7建表时date类型提示默认值类型错误的问题处理
  3. htaccess简介和16个小技巧
  4. 禁止网页右键、复制、另存为、查看源文件等功能
  5. mysql数据存储方式_数据存储在mysql的两种方式
  6. 中科院计算机跨专业考研,2015考研复试:往届生和跨专业考生
  7. python的re2和re区别_浅谈Python中re.match()和re.search()的使用及区别
  8. mysql innodb flus_MySQL参数解析innodb_flush_neighbors
  9. 删表出现mysql错误1051_无法删除mySQL表. (错误1050)
  10. 【H2 Database】shell