ActionScheduler_OptionLock
Provide a way to set simple transient locks to block behaviour for up-to a given duration.
Description Description
Source Source
File: packages/action-scheduler/classes/ActionScheduler_OptionLock.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
Methods Methods
- get_expiration — If a lock is set, return the timestamp it was set to expiry.
- get_key — Get the key to use for storing the lock in the transient
- set — Set a lock using options for a given amount of time (60 seconds by default).