Property | Type | Description | |
---|---|---|---|
$channel | redis key of queue | ||
$redis | Redis |
Method | Description | |
---|---|---|
__construct ( string $host = '127.0.0.1', integer $port = 6379, integer $database, string $channel = 'cache', string $prefix = 'simple-fork-' ) | ||
__destruct ( ) | close the connection | |
close ( ) | close the connection | |
get ( boolean $block = false ) : boolean | string | get value from the queue | |
put ( $value ) : boolean | put value into the queue | |
remove ( ) : mixed | remove the queue resource | |
size ( ) : integer | get the size of the queue |
public __construct ( string $host = '127.0.0.1', integer $port = 6379, integer $database, string $channel = 'cache', string $prefix = 'simple-fork-' ) | ||
$host | string | redis server host |
$port | integer | redis server port |
$database | integer | redis server database num |
$channel | string | redis queue key |
$prefix | string | prefix of redis queue key |