Automattic\WooCommerce\Caching

WpCacheEngine::cache_object()publicWC 1.0

Метод класса: WpCacheEngine{}

No Hooks.

Return

null. Nothing.

Usage

$WpCacheEngine = new WpCacheEngine();
$WpCacheEngine->cache_object( $key, $object, $expiration ): bool;
$key(string) (required)
-
$object (required)
-
$expiration(int) (required)
-

Code of WpCacheEngine::cache_object() WC 7.1.0

public function cache_object( string $key, $object, int $expiration ): bool {
	return wp_cache_set( $key, $object, self::CACHE_GROUP_NAME, $expiration );
}