You've already forked Php-Template
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 1m54s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 1m59s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 1m56s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Failing after 1m56s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 2m34s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Failing after 1m13s
35 lines
878 B
PHP
35 lines
878 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 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;
|
|
}
|
|
}
|