WC_Rate_Limiter::set_cache()protected staticWC 1.0

Cache a rate limit.

Method of the class: WC_Rate_Limiter{}

No Hooks.

Return

true|false.

Usage

$result = WC_Rate_Limiter::set_cache( $action_id, $expiry );
$action_id(string) (required)
Identifier of the action.
$expiry(int) (required)
Timestamp when the limit expires.

WC_Rate_Limiter::set_cache() code WC 8.6.1

protected static function set_cache( $action_id, $expiry ) {
	return wp_cache_set( self::get_cache_key( $action_id ), $expiry, self::CACHE_GROUP );
}