v2.3.0 - Update packages

This commit is contained in:
Daniel Mason 2024-09-04 18:50:32 +12:00
parent 5ef4a63a6e
commit 2c995bd613
Signed by: idanoo
GPG key ID: 387387CDBC02F132
8 changed files with 170 additions and 114 deletions

View file

@ -14,12 +14,14 @@ class Redis
{
/**
* Redis Client
*
* @var \Credis_Client
*/
private $driver;
/**
* Redis namespace
*
* @var string
*/
private static $defaultNamespace = 'resque:';
@ -39,6 +41,11 @@ class Redis
*/
public const DEFAULT_DATABASE = 0;
/**
* Default Redis TTL (2 days)
*/
public const DEFAULT_REDIS_TTL = 172800;
/**
* @var array List of all commands in Redis that supply a key as their
* first argument. Used to prefix keys with the Resque namespace.
@ -114,6 +121,7 @@ class Redis
if (substr($namespace, -1) !== ':' && $namespace != '') {
$namespace .= ':';
}
self::$defaultNamespace = $namespace;
}