PHPackages                             antyblin/laravel-swoole-redis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. antyblin/laravel-swoole-redis

ActiveLibrary[Caching](/categories/caching)

antyblin/laravel-swoole-redis
=============================

Laravel package to provide swoole redis pool integration, Laravel redis pool cache and session driver.

1.1(3y ago)11.2k4MITPHPPHP &gt;=7.4

Since Apr 29Pushed 3y agoCompare

[ Source](https://github.com/antyblin/laravel-swoole-redis)[ Packagist](https://packagist.org/packages/antyblin/laravel-swoole-redis)[ Docs](https://github.com/antyblin/laravel-swoole-redis)[ RSS](/packages/antyblin-laravel-swoole-redis/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Swoole Redis Pool cache and session driver for Laravel
======================================================

[](#swoole-redis-pool-cache-and-session-driver-for-laravel)

Default Laravel redis connection may cause errors when running in Swoole coroutines.
This package adds support of Swoole RedisPool as a cache and session driver for Laravel.
This is a fork of `falcolee/laravel-swoole-redis` package, original idea belongs to .

Installation
------------

[](#installation)

### Step 1:

[](#step-1)

Install package

```
composer require antyblin/laravel-swoole-redis
```

### Step 2:

[](#step-2)

Add `redis_pool` store to the `stores` section in `config/cache.php`:

```
    'redis_pool' => [
        'driver' => 'redis',
        'connection' => 'default',
    ],
```

### Step 3:

[](#step-3)

Change your redis driver or session driver to `redis_pool` in your `.env` file and that is it.

Config
------

[](#config)

You may add additional parameter `'pool_size'` to the redis section in `config/database.php`. This parameter sets maximum quantity of connections in RedisPool.

```
    'default' => [
        'url' => env('REDIS_URL'),
        'host' => env('REDIS_HOST'),
        'password' => env('REDIS_PASSWORD'),
        'port' => env('REDIS_PORT'),
        'database' => env('REDIS_CACHE_DB'),
        'pool_size' => env('REDIS_POOL_SIZE', 64)
    ],
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~245 days

Total

4

Last Release

1158d ago

Major Versions

0.0.1 → 1.0.02022-05-17

PHP version history (2 changes)0.0.1PHP &gt;=5.6.4

1.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce1e36e7cee062d81967e06a8191ca4e01711d9615c1c91a2372ded68f3dfdfe?d=identicon)[antyblin](/maintainers/antyblin)

---

Top Contributors

[![antyblin](https://avatars.githubusercontent.com/u/1934442?v=4)](https://github.com/antyblin "antyblin (4 commits)")[![falcolee](https://avatars.githubusercontent.com/u/4252835?v=4)](https://github.com/falcolee "falcolee (1 commits)")[![flemeur](https://avatars.githubusercontent.com/u/898359?v=4)](https://github.com/flemeur "flemeur (1 commits)")

---

Tags

laravel swoole redis poollaravel swoole redis cachelaravel swoole session driver

### Embed Badge

![Health badge](/badges/antyblin-laravel-swoole-redis/health.svg)

```
[![Health](https://phpackages.com/badges/antyblin-laravel-swoole-redis/health.svg)](https://phpackages.com/packages/antyblin-laravel-swoole-redis)
```

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[illuminate/cache

The Illuminate Cache package.

12937.0M1.8k](/packages/illuminate-cache)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21111.6k](/packages/iazaran-smart-cache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
