PHPackages                             tenantcloud/laravel-better-cache - 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. tenantcloud/laravel-better-cache

ActiveLibrary[Caching](/categories/caching)

tenantcloud/laravel-better-cache
================================

Improvements for Laravel's cache

v2.0.0-alpha.1(1y ago)529.5k↓46.8%MITPHPPHP &gt;=8.3CI passing

Since Aug 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/tenantcloud/laravel-better-cache)[ Packagist](https://packagist.org/packages/tenantcloud/laravel-better-cache)[ RSS](/packages/tenantcloud-laravel-better-cache/feed)WikiDiscussions alpha Synced 2w ago

READMEChangelog (8)Dependencies (13)Versions (10)Used By (0)

Better cache for Laravel
========================

[](#better-cache-for-laravel)

Fail safe
---------

[](#fail-safe)

Laravel's implementation of cache doesn't allow failures - if your Redis dies, your app dies too. New `fail_safe` driver aims to solve this by catching and logging all exceptions and instead returning null/false as if the value was simply not found in cache:

```
// config/cache.php
[
	'fail_safe' => [
		'delegate' => [
			'driver' => 'redis',
			'connection' => 'cache',
			'lock_connection' => 'default',
		]
	]
]

// code
Cache::forever('key', 'value');
// redis died here
Cache::get('key'); // returns null and logs the exception
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance46

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~147 days

Recently: every ~181 days

Total

8

Last Release

416d ago

Major Versions

v1.0.0-alpha.7 → v2.0.0-alpha.12025-06-28

PHP version history (3 changes)v1.0.0-alpha.1PHP &gt;=8.1

v1.0.0-alpha.7PHP &gt;=8.2

v2.0.0-alpha.1PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/216426b713fa88a88c59ae755fa9c5e5e73a88fce79903c3234a9f21af8547dc?d=identicon)[oprypkhantc](/maintainers/oprypkhantc)

---

Top Contributors

[![oprypkhantc](https://avatars.githubusercontent.com/u/54406427?v=4)](https://github.com/oprypkhantc "oprypkhantc (13 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (9 commits)")[![tcmbilozub](https://avatars.githubusercontent.com/u/35073636?v=4)](https://github.com/tcmbilozub "tcmbilozub (5 commits)")[![package-sync[bot]](https://avatars.githubusercontent.com/u/35073549?v=4)](https://github.com/package-sync[bot] "package-sync[bot] (3 commits)")

---

Tags

laravelpackagephp

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tenantcloud-laravel-better-cache/health.svg)

```
[![Health](https://phpackages.com/badges/tenantcloud-laravel-better-cache/health.svg)](https://phpackages.com/packages/tenantcloud-laravel-better-cache)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[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.

21114.2k](/packages/iazaran-smart-cache)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k2](/packages/mike-bronner-laravel-model-caching)[illuminate/cache

The Illuminate Cache package.

12937.6M2.0k](/packages/illuminate-cache)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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