Commit 01b46d0
committed
Ensure we don't try and send 0 expires for SET
As raised by issues phpredis#579, and phpredis#640 phpredis could be made to silently
revert to a "SET" call (no expiry) if a non long argument was specified
for EX or PX options, as well as an invalid base timeout value.
This modification changes the code so we don't even send the command to
Redis in such cases, which also avoids a round trip.1 parent 7165364 commit 01b46d0
1 file changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | | - | |
| 1011 | + | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
| |||
1225 | 1225 | | |
1226 | 1226 | | |
1227 | 1227 | | |
1228 | | - | |
1229 | | - | |
| 1228 | + | |
1230 | 1229 | | |
1231 | 1230 | | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1235 | 1234 | | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1240 | 1246 | | |
1241 | 1247 | | |
1242 | 1248 | | |
1243 | 1249 | | |
| 1250 | + | |
1244 | 1251 | | |
| 1252 | + | |
1245 | 1253 | | |
1246 | 1254 | | |
1247 | 1255 | | |
| |||
0 commit comments