{"id":17347520,"url":"https://github.com/cryptiklemur/cache-bundle","last_synced_at":"2026-03-12T07:02:16.549Z","repository":{"id":8613541,"uuid":"10254458","full_name":"cryptiklemur/cache-bundle","owner":"cryptiklemur","description":"Integrated Cache Bundle for Symfony","archived":false,"fork":false,"pushed_at":"2018-10-06T10:57:34.000Z","size":271,"stargazers_count":35,"open_issues_count":0,"forks_count":14,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-12-20T09:29:53.522Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptiklemur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-23T22:02:28.000Z","updated_at":"2018-10-05T04:35:29.000Z","dependencies_parsed_at":"2022-08-26T03:25:06.192Z","dependency_job_id":null,"html_url":"https://github.com/cryptiklemur/cache-bundle","commit_stats":null,"previous_names":["aequasi/cache-bundle"],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/cryptiklemur/cache-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Fcache-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Fcache-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Fcache-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Fcache-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptiklemur","download_url":"https://codeload.github.com/cryptiklemur/cache-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Fcache-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30417685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T06:40:58.731Z","status":"ssl_error","status_checked_at":"2026-03-12T06:40:40.296Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2024-10-15T16:49:04.450Z","updated_at":"2026-03-12T07:02:16.534Z","avatar_url":"https://github.com/cryptiklemur.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This Bundle is Deprecated\n\nThis bundle has been replaced by [PHP-Cache](http://www.php-cache.com). Check it out!\n\nAequasi cache-bundle [![Build Status](https://travis-ci.org/aequasi/cache-bundle.png?branch=master)](https://travis-ci.org/aequasi/cache-bundle)\n====================\n\n#### Cache Bundle for Symfony 2\n\nCreates services in Symfony 2, for cache, that can also be used with doctrines three cache types (metadata, result, and query). It also provides functionality for session handler support, and Router support.\n\nThe respective cache extensions will be required for your project.\n\nRedis uses the php redis extension.\n\n#### Requirements\n\n- PHP \u003e= 5.6, \u003c 7.1\n- Symfony \u003e= 2.7, \u003c 4.0 \n- [Composer](http://getcomposer.org)\n\n#### To Install\n\nRun the following in your project root, assuming you have composer set up for your project\n```sh\ncomposer.phar require aequasi/cache-bundle\n```\n\nAdd the bundle to app/AppKernel.php\n\n```php\n$bundles(\n    ...\n       new Aequasi\\Bundle\\CacheBundle\\AequasiCacheBundle(),\n    ...\n);\n```\n\nThen add parameters (probably in config.yml) for your servers, and options\n\n```yml\naequasi_cache:\n    instances:\n        default:\n          persistent: true # Boolean or persistent_id\n          namespace: mc\n          type: memcached\n          hosts:\n              - { host: localhost, port: 11211 }\n```\n\nTo see all the config options, run `php app/console config:dump-reference aequasi_cache` to view the config settings\n\n\n#### Doctrine\n\nThis bundle allows you to use its services for Doctrine's caching methods of metadata, result, and query.\n\nIf you want doctrine to use this as the result and query cache, add this\n\n```yml\naequasi_cache:\n    doctrine:\n        enabled: true\n        metadata:\n            instance: default\n            entity_managers:   [ default ]          # the name of your entity_manager connection\n            document_managers: [ default ]       # the name of your document_manager connection\n        result:\n            instance: default\n            entity_managers:   [ default, read ]  # you may specify multiple entity_managers\n        query:\n            instance: default\n            entity_managers: [ default ]\n```\n\n#### Session\n\nThis bundle even allows you to store your session data in one of your cache clusters. To enable:\n\n```yml\naequasi_cache:\n    session:\n        enabled: true\n        instance: default\n        prefix: \"session_\"\n        ttl: 7200\n```\n\n#### Router\n\nThis bundle also provides router caching, to help speed that section up. To enable:\n\n```yml\naequasi_cache:\n    router:\n        enabled: true\n        instance: default\n```\n\nIf you change any of your routes, you will need to clear all of the route_* keys in your cache.\n\n\n#### To Use\n\nTo use this with doctrine's entity manager, just make sure you have `useResultCache` and/or `useQueryCache` set to true. If you want to use the user cache, just grab the service out of the container like so:\n\n```php\n// Change default to the name of your instance\n$cache = $container-\u003eget( 'aequasi_cache.instance.default' );\n// Or\n$cache = $container-\u003eget( 'aequasi_cache.default' );\n```\n\nHere is an example usage of the service:\n\n```php\n$cache = $this-\u003eget( 'aequasi_cache.instance.default' );\n$item = $cache-\u003egetItem('test');\nif ($item-\u003eisHit()) {\n\tvar_dump($item-\u003eget());\n\t\n\treturn;\n}\n\n$cache-\u003esaveItem('test', $em-\u003efind('AcmeDemoBundle:User', 1), 3600);\n```\n\n### Need Help?\n\nCreate an issue if you've found a bug, or ping me on twitter: @aequasi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptiklemur%2Fcache-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptiklemur%2Fcache-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptiklemur%2Fcache-bundle/lists"}