{"id":34760862,"url":"https://github.com/halaei/bredis","last_synced_at":"2026-05-06T04:03:01.396Z","repository":{"id":62514167,"uuid":"68701742","full_name":"halaei/bredis","owner":"halaei","description":"Redis queue driver for Laravel \u003c 5.6 with blocking pop support (this is ported to laravel 5.6 core)","archived":false,"fork":false,"pushed_at":"2017-10-02T08:07:06.000Z","size":10,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-11T13:07:45.546Z","etag":null,"topics":["blocking-pop","laravel","redis","redis-queue"],"latest_commit_sha":null,"homepage":"","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/halaei.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":"2016-09-20T10:38:42.000Z","updated_at":"2018-10-04T08:16:28.000Z","dependencies_parsed_at":"2022-11-02T13:15:47.698Z","dependency_job_id":null,"html_url":"https://github.com/halaei/bredis","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/halaei/bredis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Fbredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Fbredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Fbredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Fbredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halaei","download_url":"https://codeload.github.com/halaei/bredis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Fbredis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["blocking-pop","laravel","redis","redis-queue"],"created_at":"2025-12-25T06:23:58.152Z","updated_at":"2026-05-06T04:03:01.389Z","avatar_url":"https://github.com/halaei.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bredis queue driver for Laravel\n\n[![Build Status](https://travis-ci.org/halaei/bredis.svg)](https://travis-ci.org/halaei/bredis)\n[![Latest Stable Version](https://poser.pugx.org/halaei/bredis/v/stable)](https://packagist.org/packages/halaei/bredis)\n[![Total Downloads](https://poser.pugx.org/halaei/bredis/downloads)](https://packagist.org/packages/halaei/bredis)\n[![Latest Unstable Version](https://poser.pugx.org/halaei/bredis/v/unstable)](https://packagist.org/packages/halaei/bredis)\n[![License](https://poser.pugx.org/halaei/bredis/license)](https://packagist.org/packages/halaei/bredis)\n\n## When do you need bredis?\n\nYou need `bredis` when all of these are applied:\n\n1. **You don't want your jobs to be delayed because your workers are currently sleeping.**\n2. You don't want to run `queue:work --sleep=0` on current Redis queue driver because it will devour your CPU when there is no job.\n\nHence, you need your workers to idle-wait for a job and process them just when they arrive, with nearly no delay.\nWith `bredis` you can happily run `queue:work --sleep=0` without worrying about busy waiting and CPU overload.\n\n## Installation\n\n### 1. Install the package via compioser\n\n    composer require halaei/bredis\n    \n### 2. Add the service provider to your config/app.php\n\n    Halaei\\BRedis\\BlockingRedisServiceProvider::class\n\n### 3. Add bredis connections to app/queue.php\n\n    'bredis' =\u003e [\n        'driver'      =\u003e 'bredis',\n        'connection'  =\u003e 'default',\n        'queue'       =\u003e 'default',\n        'retry_after' =\u003e 90,\n        'timeout'     =\u003e 10, //Maximum seconds to wait for a job\n    ],\n\nPlease note that if you need to increase 'timeout' in the config array above, you should increase 'retry_after' in the array as well as --timeout in your `queue:work` commands.\n\n**Warning**: bredis queue workers don't bother handling jobs that are delayed or reserved. So when using bredis workers, you have to have at least one redis worker as well.\n\n**Note**: bredis queue driver is 100% compatible with redis driver. In other words, you may push the jobs using redis driver and pop them using bredis, or vice versa.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalaei%2Fbredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalaei%2Fbredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalaei%2Fbredis/lists"}