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(10mo ago)527.3k↓30%MITPHPPHP &gt;=8.3CI passing

Since Aug 29Pushed 10mo 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 1mo 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

41

—

FairBetter than 89% of packages

Maintenance53

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

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

324d 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

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[silber/page-cache

Caches responses as static files on disk for lightning fast page loads.

1.3k441.9k6](/packages/silber-page-cache)[laragear/cache-query

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

272122.8k](/packages/laragear-cache-query)[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.

2057.2k](/packages/iazaran-smart-cache)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[ryangjchandler/blade-cache-directive

Cache chunks of your Blade markup with ease.

202200.8k2](/packages/ryangjchandler-blade-cache-directive)

PHPackages © 2026

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