Automattic\WooCommerce\Internal\Api

QueryCache::build_cache_keyprivateWC 1.0

Build a versioned cache key from a hash.

Method of the class: QueryCache{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->build_cache_key( $hash ): string;
$hash(string) (required)
The SHA-256 hash.

QueryCache::build_cache_key() code WC 10.9.1

private function build_cache_key( string $hash ): string {
	return self::CACHE_KEY_PREFIX . $hash;
}