PHPackages                             dealerinspire/cache-driver-failover - 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. dealerinspire/cache-driver-failover

ActiveLibrary

dealerinspire/cache-driver-failover
===================================

Use your preferred cache driver and failover when that driver is not available.

2.0.0(3y ago)222.6k↑522.2%2MITPHPPHP ^8.0.2

Since Aug 6Pushed 3y ago4 watchersCompare

[ Source](https://github.com/dealerinspire/cache-driver-failover)[ Packagist](https://packagist.org/packages/dealerinspire/cache-driver-failover)[ RSS](/packages/dealerinspire-cache-driver-failover/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Dealer Inspire - Cache Driver Failover
--------------------------------------

[](#dealer-inspire---cache-driver-failover)

### Usage

[](#usage)

Install the package:

```
composer require dealerinspire/cache-driver-failover

```

Register the service provider in `config/app.php`:

```
...
'providers' => [
    ...
    /*
     * Package Service Providers...
     */
    DealerInspire\AppCache\AppCacheProvider::class,
    ...
],
...
```

Configuration:

You do not need to publish a configuration for this package. The app\_cache configuration automatically merged into your `config/cache.php` configuration. If you wish to change the `app_cache_driver` configuration, simply add the following to your `config/cache.php`:

```
...
'app_cache_driver' => 'value',
...
```

Add the following .env variables:

```
APP_CACHE_DRIVER=redis
APP_REDIS_HOST=
APP_REDIS_PASSWORD=
APP_REDIS_PORT=6379
APP_REDIS_CACHE_DB=0
```

Use the package in your project:

```
public function __construct(AppCacheContract $cache)
{
    $this->cache = $cache;
}
```

Type-hint the `DealerInspire\AppCache\AppCacheContract` into your class to begin using.

### Laravel Notes

[](#laravel-notes)

If you are on a version of Laravel lower than 5.8 the cache duration constants in `AppCacheContract`will not be accurate. Laravel versions less than 5.8 use cache duration values of minutes. In Laravel 5.8, cache duration was changed to use seconds, which is the format that this package follows. Please keep this in mind as you're implementing this package and be wary of the constants on Laravel &lt;5.8.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~1147 days

Total

2

Last Release

1321d ago

Major Versions

1.0.0 → 2.0.02022-09-26

PHP version history (2 changes)1.0.0PHP &gt;=7.1

2.0.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b389be098fdc199f34b8fd5fb33efc50eb2bc523f23a903e5d28a3dce1dbac0?d=identicon)[nwilging](/maintainers/nwilging)

---

Top Contributors

[![ephbaum](https://avatars.githubusercontent.com/u/4037628?v=4)](https://github.com/ephbaum "ephbaum (4 commits)")[![fredjiles](https://avatars.githubusercontent.com/u/221440?v=4)](https://github.com/fredjiles "fredjiles (2 commits)")[![jpuck](https://avatars.githubusercontent.com/u/15305396?v=4)](https://github.com/jpuck "jpuck (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dealerinspire-cache-driver-failover/health.svg)

```
[![Health](https://phpackages.com/badges/dealerinspire-cache-driver-failover/health.svg)](https://phpackages.com/packages/dealerinspire-cache-driver-failover)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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