When exactly to Redis methods return a Redis instance? #2835
|
Nearly all the methods in redis.stub.php include It would be great if 7.0 could remove this possibility entirely, as well as returning |
|
Nearly all the methods in redis.stub.php include It would be great if 7.0 could remove this possibility entirely, as well as returning |
As @yatsukhnenko posted it's when you are in a transaction (either MULTI, PIPELINE, or both). This allows you to chain commands
And on the server:
We only ever semantically return
$thisnever an unrelatedRedis