{"id":14984087,"url":"https://github.com/bigoen/redis-bundle","last_synced_at":"2025-08-04T08:33:40.815Z","repository":{"id":62494099,"uuid":"300284884","full_name":"bigoen/redis-bundle","owner":"bigoen","description":"Redis bundle.","archived":false,"fork":false,"pushed_at":"2024-07-24T14:59:55.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T23:05:49.095Z","etag":null,"topics":["predis","redis","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"","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/bigoen.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}},"created_at":"2020-10-01T13:13:49.000Z","updated_at":"2024-07-24T14:59:37.000Z","dependencies_parsed_at":"2024-09-25T00:30:59.244Z","dependency_job_id":null,"html_url":"https://github.com/bigoen/redis-bundle","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"106a8cb878e14432e14c1da04dbf1ae535c551e1"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bigoen/redis-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigoen%2Fredis-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigoen%2Fredis-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigoen%2Fredis-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigoen%2Fredis-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigoen","download_url":"https://codeload.github.com/bigoen/redis-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigoen%2Fredis-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268669568,"owners_count":24287788,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["predis","redis","symfony","symfony-bundle"],"created_at":"2024-09-24T14:08:25.520Z","updated_at":"2025-08-04T08:33:40.782Z","avatar_url":"https://github.com/bigoen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"BigoenRedisBundle\n============================== \n\nSetup\n------------\n```\ncomposer require bigoen/redis-bundle\n```\n\n```yaml\n# config/packages/bigoen_redis.yaml\n\nbigoen_redis:\n    clients:\n        session:\n            dsn: '127.0.0.1/1'\n            prefix: 'demo:session:*'\n            namespace: 'demo:session'\n        monolog:\n            dsn: '127.0.0.1/2'\n            key: 'demo:monolog'\n        doctrine_metadata_cache:\n            dsn: '127.0.0.1/3'\n            prefix: 'demo:metadata_cache:*'\n            namespace: 'demo:metadata_cache'\n        doctrine_result_cache:\n            dsn: '127.0.0.1/3'\n            prefix: 'demo:result_cache:*'\n            namespace: 'demo:result_cache'\n        doctrine_query_cache:\n            dsn: '127.0.0.1/3'\n            prefix: 'demo:query_cache:*'\n            namespace: 'demo:query_cache'\n        doctrine_second_level_cache:\n            dsn: '127.0.0.1/4'\n            prefix: 'demo:second_level_cache:*'\n```\nCommands:\n------------\nclientName: monolog, session, doctrine_metadata_cache etc.\n```\nsc redis:flush {clientName}\n```\nExamples:\n------------\nRedisHelper\n```php\nuse Bigoen\\RedisBundle\\Utils\\RedisHelper;\n\n// create from dsn.\n$helper = new RedisHelper('redis://127.0.0.1/1');\n// set and add namespaces.\n$helper-\u003esetNamespace(\"test\");\n$helper-\u003eaddNamespace(\"sub\");\n// create redis.\n$redis = $helper-\u003egetRedis();\n```\nRedisClientHelper\n```php\nuse Bigoen\\RedisBundle\\Utils\\RedisClientHelper;\n\nclass TestController\n{\n    public function __invoke(RedisClientHelper $helper)\n    {\n        // create redis.\n        $redis = $helper-\u003esetClient(\"doctrine_query_cache\")-\u003ecreateRedis();\n        // get namespace or other client parameters.\n        $namespace = $helper-\u003egetParameter('namespace');\n        $redis-\u003eset(\"{$namespace}:key\", \"test\");\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigoen%2Fredis-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigoen%2Fredis-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigoen%2Fredis-bundle/lists"}