PHP Class ManaPHP\Message\Queue\Adapter\Redis

Inheritance: extends ManaPHP\Component, implements ManaPHP\Message\QueueInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_prefix string
$_priorities int[]
$_topicKeys array[]

Méthodes publiques

Méthode Description
__construct ( string | array $options = [] ) Redis constructor.
delete ( string $topic ) : void
length ( string $topic, integer $priority = null ) : integer
pop ( string $topic, integer $timeout = PHP_INT_MAX ) : string | false
push ( string $topic, string $body, integer $priority = self::PRIORITY_NORMAL )

Method Details

__construct() public méthode

Redis constructor.
public __construct ( string | array $options = [] )
$options string | array

delete() public méthode

public delete ( string $topic ) : void
$topic string
Résultat void

length() public méthode

public length ( string $topic, integer $priority = null ) : integer
$topic string
$priority integer
Résultat integer

pop() public méthode

public pop ( string $topic, integer $timeout = PHP_INT_MAX ) : string | false
$topic string
$timeout integer
Résultat string | false

push() public méthode

public push ( string $topic, string $body, integer $priority = self::PRIORITY_NORMAL )
$topic string
$body string
$priority integer

Property Details

$_prefix protected_oe property

protected string $_prefix
Résultat string

$_priorities protected_oe property

protected int[] $_priorities
Résultat int[]

$_topicKeys protected_oe property

protected array[] $_topicKeys
Résultat array[]