Added very basic octopart info provider

This commit is contained in:
Jan Böhmer 2023-07-30 23:04:18 +02:00
parent 6a00b8e168
commit 43cc37d10f
6 changed files with 260 additions and 2 deletions

View file

@ -74,7 +74,7 @@ final class PartInfoRetriever
protected function searchInProvider(InfoProviderInterface $provider, string $keyword): array
{
//Generate key and escape reserved characters from the provider id
$escaped_keyword = urlencode($keyword);
$escaped_keyword = urlencode($keyword) . uniqid();
return $this->partInfoCache->get("search_{$provider->getProviderKey()}_{$escaped_keyword}", function (ItemInterface $item) use ($provider, $keyword) {
//Set the expiration time