Automattic\WooCommerce\Internal\Api
QueryCache::build_cache_key
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() QueryCache::build cache key code WC 10.9.1
private function build_cache_key( string $hash ): string {
return self::CACHE_KEY_PREFIX . $hash;
}