14 lines
298 B
PHP
14 lines
298 B
PHP
<?php
|
|
|
|
namespace app\common\logic;
|
|
|
|
class RedisLogic extends BaseLogic
|
|
{
|
|
public static function getInstance()
|
|
{
|
|
$redisInstance = new \Redis();
|
|
$redisInstance->connect(env('redis.host'));
|
|
$redisInstance->auth(env('redis.auth'));
|
|
return $redisInstance;
|
|
}
|
|
} |