PHP 클래스 ManaPHP\Store\Adapter\Redis

상속: extends ManaPHP\Component, implements ManaPHP\Store\AdapterInterface
파일 보기 프로젝트 열기: manaphp/manaphp

보호된 프로퍼티들

프로퍼티 타입 설명
$_key string
$_service string

공개 메소드들

메소드 설명
__construct ( string | array | Redis $options = [] ) Redis constructor.
delete ( string $id ) Delete content
exists ( string $id ) : boolean Check if id exists
get ( string $id ) : string | false Fetch content
set ( string $id, string $value ) : void Caches content
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

메소드 상세

__construct() 공개 메소드

Redis constructor.
public __construct ( string | array | Redis $options = [] )
$options string | array | ConfManaPHP\Store\Adapter\Redis

delete() 공개 메소드

Delete content
public delete ( string $id )
$id string

exists() 공개 메소드

Check if id exists
public exists ( string $id ) : boolean
$id string
리턴 boolean

get() 공개 메소드

Fetch content
public get ( string $id ) : string | false
$id string
리턴 string | false

set() 공개 메소드

Caches content
public set ( string $id, string $value ) : void
$id string
$value string
리턴 void

setDependencyInjector() 공개 메소드

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
리턴 static

프로퍼티 상세

$_key 보호되어 있는 프로퍼티

protected string $_key
리턴 string

$_service 보호되어 있는 프로퍼티

protected string $_service
리턴 string