Files
php-auth/src/Services/Facades/Redis.php
2026-01-01 10:32:17 -05:00

36 lines
921 B
PHP

<?php
declare(strict_types=1);
namespace Siteworxpro\App\Services\Facades;
use Predis\Client;
use Predis\Response\Status;
use Siteworxpro\App\Services\Facade;
/**
* Facade for the Redis client.
*
* This class provides a static interface to interact with the Redis client.
*
* @method static array scan($cursor, ?array $options = null)
* @method static string|null get(string $key)
* @method static Status|null set(string $key, $value, $expireResolution = null, $expireTTL = null, $flag = null)
* @method static array keys(string $pattern)
* @method static int del(string $key)
* @method static bool exists(string $key)
* @method static Status ping()
*/
class Redis extends Facade
{
/**
* Get the registered name of the component.
*
* @return string The name of the component.
*/
protected static function getFacadeAccessor(): string
{
return Client::class;
}
}