You've already forked php-auth
generated from siteworxpro/Php-Template
Initial commit
This commit is contained in:
34
src/Services/Facades/Redis.php
Normal file
34
src/Services/Facades/Redis.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user