PHP 클래스 Automattic\WP\Cron_Control\Lock

파일 보기 프로젝트 열기: Automattic/vip-mu-plugins-public 1 사용 예제들

공개 메소드들

메소드 설명
check_lock ( $lock, $limit = null, $timeout = null ) : boolean Set a lock and limit how many concurrent jobs are permitted
free_lock ( $lock, $expires ) When event completes, allow another
get_lock_timestamp ( $lock ) Retrieve a lock's timestamp
get_lock_value ( $lock ) Retrieve a lock from cache
prime_lock ( $lock, $expires ) Ensure lock entries are initially set
reset_lock ( $lock, $expires ) Clear a lock's current values, in order to free it

비공개 메소드들

메소드 설명
get_key ( $lock, $type = 'lock' ) Build cache key

메소드 상세

check_lock() 공개 정적인 메소드

Set a lock and limit how many concurrent jobs are permitted
public static check_lock ( $lock, $limit = null, $timeout = null ) : boolean
$lock string Lock name
$limit int Concurrency limit
$timeout int Timeout in seconds
리턴 boolean

free_lock() 공개 정적인 메소드

When event completes, allow another
public static free_lock ( $lock, $expires )

get_lock_timestamp() 공개 정적인 메소드

Retrieve a lock's timestamp
public static get_lock_timestamp ( $lock )

get_lock_value() 공개 정적인 메소드

Retrieve a lock from cache
public static get_lock_value ( $lock )

prime_lock() 공개 정적인 메소드

Ensure lock entries are initially set
public static prime_lock ( $lock, $expires )

reset_lock() 공개 정적인 메소드

Clear a lock's current values, in order to free it
public static reset_lock ( $lock, $expires )