wp-includes/ai-client/adapters/class-wp-ai-client-cache.php:62Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
$keystring$valuemixed$ttlnull|int|DateIntervaloptionalnullbool public function set( $key, $value, $ttl = null ): bool { $expire = $this->ttl_to_seconds( $ttl ); return wp_cache_set( $key, $value, self::CACHE_GROUP, $expire ); }Introduced in 7.0.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/ai-client/adapters/class-wp-ai-client-cache.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.