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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

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

547d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/de77186203cbe837b108189d765a9f654f814017caf8e1128efe2de42ead3793?d=identicon)[shashandr](/maintainers/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.8k8.2M51](/packages/spatie-laravel-responsecache)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M26](/packages/genealabs-laravel-model-caching)[mikebronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k127.1k1](/packages/mikebronner-laravel-model-caching)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[laragear/cache-query

Remember your query results using only one method. Yes, only one.

272122.8k](/packages/laragear-cache-query)[namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis master through Redis Sentinel.

38679.0k](/packages/namoshek-laravel-redis-sentinel)

PHPackages © 2026

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