Redis::connection PHP 메소드

connection() 공개 정적인 메소드

Get a specific Redis connection instance.
public static connection ( string $name = 'default' ) : Predis\ClientInterface | null
$name string
리턴 Predis\ClientInterface | null
        public static function connection($name = 'default')
        {
            return \Illuminate\Redis\Database::connection($name);
        }

Usage Example

예제 #1
0
파일: hasMany.php 프로젝트: huoybb/movie
 function __construct(redisModel $subject, $objectName, $index)
 {
     $this->redis = Redis::connection();
     $this->subject = $subject;
     $this->objectName = $objectName;
     $this->objectIndex = $index;
 }
All Usage Examples Of Redis::connection