PHP Interface Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage

Show file Open project: sroze/tolerance Interface Usage Examples

Public Methods

Method Description
find ( string $identifier ) : Tolerance\Throttling\RateMeasure\RateMeasure | null Find a measure for the given identifier.
save ( string $identifier, Tolerance\Throttling\RateMeasure\RateMeasure $measure ) Save a measure for the given identifier.

Method Details

find() public method

Find a measure for the given identifier.
public find ( string $identifier ) : Tolerance\Throttling\RateMeasure\RateMeasure | null
$identifier string
return Tolerance\Throttling\RateMeasure\RateMeasure | null

save() public method

Save a measure for the given identifier.
public save ( string $identifier, Tolerance\Throttling\RateMeasure\RateMeasure $measure )
$identifier string
$measure Tolerance\Throttling\RateMeasure\RateMeasure