ActionScheduler_Lock
Abstract class for setting a basic lock to throttle some action.
Description Description
Class ActionScheduler_Lock
Source Source
File: packages/action-scheduler/classes/abstracts/ActionScheduler_Lock.php
Methods Methods
- get_duration — Get the amount of time to set for a given lock. 60 seconds by default.
- get_expiration — If a lock is set, return the timestamp it was set to expiry.
- instance
- is_locked — Check if a lock is set for a given lock type.
- set — Set a lock.