PHPackages                             shashandr/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. shashandr/laravel-swoole-redis

ActiveLibrary[Caching](/categories/caching)

shashandr/laravel-swoole-redis
==============================

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

1.0.0(1y ago)123MITPHPPHP &gt;=8.1

Since Nov 12Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)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 `antyblin/laravel-swoole-redis` package, original idea belongs to .

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

[](#installation)

### Step 1:

[](#step-1)

Install package

```
composer require shashandr/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

27

—

LowBetter than 47% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

600d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/181478053?v=4)[shashandr](/maintainers/shashandr)[@shashandr](https://github.com/shashandr)

---

Top Contributors

[![antyblin](https://avatars.githubusercontent.com/u/1934442?v=4)](https://github.com/antyblin "antyblin (4 commits)")[![shashandr](https://avatars.githubusercontent.com/u/181478053?v=4)](https://github.com/shashandr "shashandr (2 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/shashandr-laravel-swoole-redis/health.svg)

```
[![Health](https://phpackages.com/badges/shashandr-laravel-swoole-redis/health.svg)](https://phpackages.com/packages/shashandr-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)
