expiration = apply_filters( 'optml_page_profiler_object_cache_expiration', self::EXPIRATION ); } /** * Store data in the object cache. * * @param string $key The unique identifier for the data. * @param array $data The data to store. * @return bool True on success, false on failure. */ public function store( string $key, array $data ) { return wp_cache_set( $key, $data, self::GROUP, $this->expiration ); } /** * Retrieve data from the object cache. * * @param string $key The unique identifier for the data to retrieve. * @return array|false The stored data or false if not found. */ public function get( string $key ) { return self::normalize_value( wp_cache_get( $key, self::GROUP ) ); } /** * Delete data from the object cache. * * @param string $key The unique identifier for the data to delete. * @return bool True on success, false on failure. */ public function delete( string $key ) { return wp_cache_delete( $key, self::GROUP ); } /** * Delete all data from the object cache group. * * @return bool True on success, false on failure. */ public function delete_all() { return wp_cache_flush_group( self::GROUP ); } }