Метод | Описание | |
---|---|---|
__construct ( string $name, PDO $pdo ) | Sets the PDO and the bucket's name for the shared storage. | |
bootstrap ( $microtime ) | ||
getMicrotime ( ) | ||
getMutex ( ) | ||
isBootstrapped ( ) | ||
remove ( ) | ||
setMicrotime ( $microtime ) |
Метод | Описание | |
---|---|---|
forVendor ( array $map, string $default = "" ) : string | Returns a vendor specific dialect value. | |
querySingleValue ( string $sql, array $parameters = [] ) : string | Returns one value from a query. |
public __construct ( string $name, PDO $pdo ) | ||
$name | string | The name of the token bucket. |
$pdo | PDO | The PDO. |