ActionScheduler_OptionLock

Provide a way to set simple transient locks to block behaviour for up-to a given duration.


Description Description

Class ActionScheduler_OptionLock


Source Source

File: packages/action-scheduler/classes/ActionScheduler_OptionLock.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

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).

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.