18 lines
272 B
PHP
18 lines
272 B
PHP
<?php
|
|
|
|
namespace Core\annotations;
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Target;
|
|
|
|
/**
|
|
* @Annotation
|
|
* @Target({"METHOD"})
|
|
*/
|
|
class Lock
|
|
{
|
|
public $prefix = '';
|
|
public $key = '';
|
|
public $retry = 3;//重试次数
|
|
public $expire = 30;//重试次数
|
|
}
|