Skip to content

Commit 21ab190

Browse files
committed
Add options READ_TIMEOUT, SCAN and SLAVE_FAILOVER
1 parent df0f0cc commit 21ab190

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Redis.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ class Redis
3939
*/
4040
const OPT_SERIALIZER = 1;
4141
const OPT_PREFIX = 2;
42+
const OPT_READ_TIMEOUT = 3;
43+
const OPT_SCAN = 4;
44+
const OPT_SLAVE_FAILOVER = 5;
45+
46+
/**
47+
* Cluster options
48+
*/
49+
const FAILOVER_NONE = 0;
50+
const FAILOVER_ERROR = 1;
51+
const FAILOVER_DISTRIBUTE = 2;
52+
53+
/**
54+
* SCAN options
55+
*/
56+
const SCAN_NORETRY = 0;
57+
const SCAN_RETRY = 1;
4258

4359
/**
4460
* Serializers

0 commit comments

Comments
 (0)