PHP 클래스 ManaPHP\Meter\Linear

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_model string
$_prefix string
$_useRedis boolean

공개 메소드들

메소드 설명
__construct ( boolean | string | array $options = [] ) Linear constructor.
flush ( string $type, string $id = null ) : void
get ( string $type, string $id ) : integer
record ( string $type, string $id ) : static

보호된 메소드들

메소드 설명
_save ( string $type, string $id, integer $count ) : void

메소드 상세

__construct() 공개 메소드

Linear constructor.
public __construct ( boolean | string | array $options = [] )
$options boolean | string | array

_save() 보호된 메소드

protected _save ( string $type, string $id, integer $count ) : void
$type string
$id string
$count integer
리턴 void

flush() 공개 메소드

public flush ( string $type, string $id = null ) : void
$type string
$id string
리턴 void

get() 공개 메소드

public get ( string $type, string $id ) : integer
$type string
$id string
리턴 integer

record() 공개 메소드

public record ( string $type, string $id ) : static
$type string
$id string
리턴 static

프로퍼티 상세

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

protected string $_model
리턴 string

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

protected string $_prefix
리턴 string

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

protected bool $_useRedis
리턴 boolean