php - Will Predis be able to interact with a newer Redis version?
问题描述
I'm working on writing a script to compare a couple caching methods my team will be using. I'm trying to set up a Predis client that will interact with the Redis already running there. The Redis that is running on the server is clocking in at version 4.0.9, while the latest predis notes list support for Redis profiles from 2.0 to 3.2. I was just wondering if the functionality of simple commands that have existed since 3.2 of Redis will function the same when using predis with our 4.0 config. If not, would I be able to just use exec to go through as if I was just using the command line interface?
解决方案
As far as I remember there were no API breaking changes for "simple" commands since 3.2. That said, it is possible that you won't be able to use the newer commands. Perhaps you should consider using Phpredis that is more up to date and maintained.
推荐阅读
- pytorch - pytorch make_grid(来自torchvision.utils import make_grid)的行为与我预期的不同
- javascript - 如何使用jquery在它之前和之后同时选择相邻元素?
- python - 创建具有可变行数的数据框
- delphi - TDialogService 仅用于数字,FMX Delphi
- javascript - Netlify 部署失败 ERR:254
- javascript - 如何在 Typescript 中处理 eventListeners 上的“Event”类型和“CustomEvent”类型
- mysql - 有没有办法在 MySQL 语句中实现这一点?
- java - 在将字符串的反向与原始字符串进行比较时它返回 TRUE 而不是 FALSE
- reactjs - TypeScript/React - 从 useContext 解构会引发错误
- python - 模拟 Django GenericForeignKey