Skip to content

Commit fcaf713

Browse files
committed
Add getMode
1 parent 0d9f56c commit fcaf713

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Redis.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,6 +3222,13 @@ public function pfMerge( $destkey, array $sourcekeys ) {}
32223222
* </pre>
32233223
*/
32243224
public function rawCommand( $command, $arguments ) {}
3225+
3226+
/**
3227+
* Detect whether we're in ATOMIC/MULTI/PIPELINE mode.
3228+
* @return int Either Redis::ATOMIC, Redis::MULTI or Redis::PIPELINE
3229+
* @example $redis->getMode();
3230+
*/
3231+
public function getMode() {}
32253232
}
32263233

32273234
class RedisException extends Exception {}

0 commit comments

Comments
 (0)