您现在的位置是:首页 > PHP学习

李清波 2020-02-18 PHP学习 1578 复制当前网址

Redis5被弃用方法名和替代方法名

php-redis 5以后废弃了一些方法名

被弃用方法名替代方法名
deletedel
zUnionzunionstore
zInterzinterstore
zDeleteRangeByRankzRemRangeByRank
zDeleteRangeByScorezRemRangeByScore
zDeletezRem
setTimeoutexpire
sContainssismember
sRemovesrem
sSizescard
lGetRangelrange
lGetlindex
listTrimltrim
lRemovelrem
lSizelLen
getKeyskeys
getMultiplemget
renameKeyrename


参考:

https://www.drupal.org/project/redis/issues/3068810 this is caused by the update to php-redis 5, apparently only in the PHP 7.3 images. 这是由于更新至 php-redis 5 版本后所造成的,很明显只会在 PHP 7.3 出现

https://github.com/phpredis/phpredis/pull/1588 all aliases are deprecated & delete is an alias for del 所有的别名被弃用 & delete 之前是作为 del 的别名

https://pecl.php.net/package-changelog.php?package=redis&release=5.0.0 Soft deprecate methods that aren't actually Redis commands [a81b4f2d, 95c8aab9] 被弃用的方法实际上并不是 Redis 本身自带的命令

https://github.com/phpredis/phpredis/pull/1572


文章来源:https://liqingbo.com/blog-1663.html

评论