Skip to content

Commit e349539

Browse files
committed
add redis constant
1 parent 29f895d commit e349539

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
lines changed

redisphp.php

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,44 @@
11
<?php
2-
3-
/*
4-
* To change this template, choose Tools | Templates
5-
* and open the template in the editor.
2+
/**
3+
* Helper autocomplete for php redis extension
4+
* @author Max Kamashev <[email protected]>
5+
* @link https://github.com/ukko/phpredis-phpdoc
66
*/
77
class Redis
88
{
99
const AFTER = '';
1010
const BEFORE = '';
11+
12+
/**
13+
* Options
14+
*/
15+
const OPT_SERIALIZER = 1;
16+
const OPT_PREFIX = 2;
17+
18+
/**
19+
* Serializers
20+
*/
21+
const SERIALIZER_NONE = 0;
22+
const SERIALIZER_PHP = 1;
23+
const SERIALIZER_IGBINARY = 2;
24+
25+
/**
26+
* Multi
27+
*/
28+
const MULTI = '';
29+
const PIPELINE = '';
30+
31+
/**
32+
* Type
33+
*/
34+
const REDIS_NOT_FOUND = 0;
35+
const REDIS_STRING = 1;
36+
const REDIS_SET = 2;
37+
const REDIS_LIST = 3;
38+
const REDIS_ZSET = 4;
39+
const REDIS_HASH = 5;
40+
41+
1142
/**
1243
* Creates a Redis client
1344
*

0 commit comments

Comments
 (0)