{"id":27899481,"url":"https://github.com/roave/doctrinesimplecache","last_synced_at":"2025-05-05T19:35:19.003Z","repository":{"id":15325617,"uuid":"77899518","full_name":"Roave/DoctrineSimpleCache","owner":"Roave","description":"Doctrine Cache adapter for PSR-16 Simple Cache","archived":false,"fork":false,"pushed_at":"2025-05-02T11:53:26.000Z","size":270,"stargazers_count":55,"open_issues_count":9,"forks_count":11,"subscribers_count":10,"default_branch":"2.9.x","last_synced_at":"2025-05-02T12:45:51.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Roave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-03T08:47:07.000Z","updated_at":"2025-04-23T01:49:17.000Z","dependencies_parsed_at":"2023-12-27T16:31:44.226Z","dependency_job_id":"9757f849-625e-4747-b129-a63038b184cf","html_url":"https://github.com/Roave/DoctrineSimpleCache","commit_stats":{"total_commits":118,"total_committers":13,"mean_commits":9.076923076923077,"dds":0.6610169491525424,"last_synced_commit":"1cee69e0e2b6a39cc569c2bd34143f90af3132ce"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDoctrineSimpleCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDoctrineSimpleCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDoctrineSimpleCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FDoctrineSimpleCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Roave","download_url":"https://codeload.github.com/Roave/DoctrineSimpleCache/tar.gz/refs/heads/2.9.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252563166,"owners_count":21768414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-05T19:33:32.333Z","updated_at":"2025-05-05T19:35:18.997Z","avatar_url":"https://github.com/Roave.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doctrine SimpleCache adapter\n\n[![Build Status](https://travis-ci.org/Roave/DoctrineSimpleCache.svg?branch=master)](https://travis-ci.org/Roave/DoctrineSimpleCache)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Roave/DoctrineSimpleCache/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/roave/doctrine-simplecache/v/stable)](https://packagist.org/packages/roave/doctrine-simplecache)\n[![License](https://poser.pugx.org/roave/doctrine-simplecache/license)](https://packagist.org/packages/roave/doctrine-simplecache)\n\n[PSR-16 SimpleCache](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-16-simple-cache.md)\nimplementation that accepts a Doctrine Cache and adapts it for the PSR-16 standards.\n\n## Installation\n\nThis will install `doctrine/cache` if not already installed.\n\n```bash\n$ composer require roave/doctrine-simplecache\n```\n\n## Usage\n\nCreate your Doctrine Cache the usual way and inject it into `SimpleCacheAdapter`, for example:\n\n```php\n\u003c?php\n\nnamespace App;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\SimpleCache\\CacheInterface as PsrCacheInterface;\nuse Roave\\DoctrineSimpleCache\\SimpleCacheAdapter;\nuse Doctrine\\Common\\Cache\\RedisCache;\n\nfinal class MyCacheFactory\n{\n    public function __invoke(ContainerInterface $container) : PsrCacheInterface\n    {\n        return new SimpleCacheAdapter(new RedisCache());\n    }\n}\n```\n\n## Upgrade Guide\n\n### BC Breaks in 2.0\n\n* Support for `MultiOperationCache` added, includes support for `deleteMultiple` in Doctrine 1.7 breaks:\n  * `CacheException` static constructors `fromNonMultiGetCache` and `fromNonMultiPutCache` have been replaced with\n    `fromNonMultiOperationCache`.\n  * `SimpleCacheAdapter` now requires an adapter implementing `MultiOperationCache`, and no longer specifically\n    requires a cache implementing `MultiGetCache` or `MultiPutCache` explicitly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froave%2Fdoctrinesimplecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froave%2Fdoctrinesimplecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froave%2Fdoctrinesimplecache/lists"}