FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
phpredis/redis_array.h at develop · phpredis/phpredis · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
phpredis
/
phpredis
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10.2k
Code
Issues
100
Pull requests
34
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
phpredis
/
redis_array.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (37 loc) · 1.27 KB
Breadcrumbs
phpredis
/
redis_array.h
Copy path
File metadata and controls
43 lines (37 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef
REDIS_ARRAY_H
#define
REDIS_ARRAY_H
#if
(defined(
_MSC_VER
)
&&
_MSC_VER
<=
1920
)
#include
"win32/php_stdint.h"
#else
#include
<stdint.h>
#endif
#include
"common.h"
typedef
struct
{
uint32_t
value
;
int
index
;
}
ContinuumPoint
;
typedef
struct
{
size_t
nb_points
;
ContinuumPoint
*
points
;
}
Continuum
;
typedef
struct
RedisArray_
{
int
count
;
zend_string
*
*
hosts
;
/* array of host:port strings */
zval
*
redis
;
/* array of Redis instances */
zval
*
z_multi_exec
;
/* Redis instance to be used in multi-exec */
zend_bool
index
;
/* use per-node index */
zend_bool
auto_rehash
;
/* migrate keys on read operations */
zend_bool
pconnect
;
/* should we use pconnect */
zval
z_fun
;
/* key extractor, callable */
zval
z_dist
;
/* key distributor, callable */
zend_string
*
algorithm
;
/* key hashing algorithm name */
HashTable
*
pure_cmds
;
/* hash table */
double
connect_timeout
;
/* socket connect timeout */
double
read_timeout
;
/* socket read timeout */
Continuum
*
continuum
;
struct
RedisArray_
*
prev
;
}
RedisArray
;
extern
zend_class_entry
*
redis_array_ce
;
extern
PHP_MINIT_FUNCTION
(
redis_array
);
extern
zend_object
*
create_redis_array_object
(
zend_class_entry
*
ce
);
#endif
Back
|
FazBrowse Home
|
New Git URL