PHP Class ManaPHP\Meter\Linear

Inheritance: extends ManaPHP\Component, implements ManaPHP\Meter\LinearInterface
Datei anzeigen Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_model string
$_prefix string
$_useRedis boolean

Public Methods

Method Description
__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

Protected Methods

Method Description
_save ( string $type, string $id, integer $count ) : void

Method Details

__construct() public method

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

_save() protected method

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

flush() public method

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

get() public method

public get ( string $type, string $id ) : integer
$type string
$id string
return integer

record() public method

public record ( string $type, string $id ) : static
$type string
$id string
return static

Property Details

$_model protected_oe property

protected string $_model
return string

$_prefix protected_oe property

protected string $_prefix
return string

$_useRedis protected_oe property

protected bool $_useRedis
return boolean