{"id":86569,"library":"psr-cache","title":"PSR Cache","description":"Common interface for caching libraries.","status":"active","version":"3.0.0","language":"php","source_language":null,"source_url":"https://github.com/php-fig/cache","tags":["psr","cache","interface"],"install":[{"cmd":"composer require psr/cache","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"CacheItemPoolInterface","correct":"use Psr\\Cache\\CacheItemPoolInterface;"}],"quickstart":{"code":"use Psr\\Cache\\CacheItemPoolInterface;\n\nfunction getCachedData(CacheItemPoolInterface $pool): string\n{\n    $item = $pool->getItem('my_key');\n    if (!$item->isHit()) {\n        $item->set('fresh data');\n        $pool->save($item);\n    }\n    return $item->get();\n}","lang":"php","description":"Use a PSR-6 cache pool to store and retrieve cached data."},"warnings":[],"env_vars":null,"search_vec":"'cach':2,6,9 'common':3 'interfac':4,10 'librari':7 'psr':1,8","created_at":"2026-06-19T08:03:58.733179+00:00","updated_at":"2026-06-19T08:03:58.733179+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/php-fig/cache","github":"https://github.com/php-fig/cache","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}