Automattic\WooCommerce\StoreApi\Utilities

RateLimits::get_cache_keyprotected staticWC 1.0

Gets a cache prefix.

Method of the class: RateLimits{}

No Hooks.

Returns

String.

Usage

$result = RateLimits::get_cache_key( $action_id ): string;
$action_id(string) (required)
Identifier of the action.

RateLimits::get_cache_key() code WC 10.8.1

protected static function get_cache_key( $action_id ): string {
	return WC_Cache_Helper::get_cache_prefix( 'store_api_rate_limit' . $action_id );
}