PHPackages                             gianfriaur/laravel-fast-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. gianfriaur/laravel-fast-cache

ActiveLibrary[Caching](/categories/caching)

gianfriaur/laravel-fast-cache
=============================

Laravel Fast Cache

v1.0.0(2y ago)091MITPHPPHP ^8.1

Since Aug 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/GianfriAur/Laravel-Fast-Cache)[ Packagist](https://packagist.org/packages/gianfriaur/laravel-fast-cache)[ RSS](/packages/gianfriaur-laravel-fast-cache/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

Laravel Fast Cache
==================

[](#laravel-fast-cache)

⚽️ Goal
-------

[](#️-goal)

this library allows you to quickly create new driver caches for your packages with just a few lines of configuration

---

✨ Features
----------

[](#-features)

- driver self-registration service
- New cache store FileArrayStore

---

🤙🏼 Quickstart
-------------

[](#-quickstart)

#### 1) Install The package

[](#1-install-the-package)

> composer require gianfriaur/laravel-fast-cache

currently the library does not include additional configurations

How to use
----------

[](#how-to-use)

#### 1) Create your service driver interface

[](#1-create-your-service-driver-interface)

```
use Gianfriaur\FastCache\Service\CacheService\CacheServiceInterface;

interface MyLibraryCacheServiceInterface extends CacheServiceInterface {}
```

#### 2) register your driver

[](#2-register-your-driver)

```
use Gianfriaur\FastCache\Service\CacheServiceRegister\DefaultCacheServiceRegister;
use Gianfriaur\FastCache\Service\CacheService\DefaultCacheService;
use Gianfriaur\FastCache\Cache\Stores\FileArrayStore;

class ServicesProvider extends ServiceProvider
{
    public function register(): void
    {
        DefaultCacheServiceRegister::registerCacheService(
            $this->app,
            MyLibraryCacheServiceInterface::class,
            DefaultCacheService::class
            [
                'cache_file' => 'cache/my_library_cache.php',
                'file_env_override' => 'MY_LIBRARY_CACHE_FILE',
                'store' => FileArrayStore::class,
                'driver_name' => 'my-library-cache'
            ],
            'my_library.cache_service',
        );
    }
}
```

#### 3) use your cache

[](#3-use-your-cache)

The cache interfaces like any laravel cache, [read the official laravel guide](https://laravel.com/docs/10.x/cache)

```
// if true remember only for debug else remember forever
$is_volatile_memory = (app()->hasDebugModeEnabled() || !App::isProduction()) === true;

$my_data = $is_volatile_memory
    ? Cache::store('my-library-cache')->remember('key_name', 1,fn() => 'key_value')
    : Cache::store('my-library-cache')->rememberForever( 'key_name', fn() => 'key_value')
```

#### 4) see your cache

[](#4-see-your-cache)

> a new file was added '**bootstrap/cache/my\_library\_cache.php**'

---

📝 Next releases
---------------

[](#-next-releases)

- Add the ability to dynamically configure services

---

🎉 License
---------

[](#-license)

The Laravel Hyper Controller package is licensed under the terms of the MIT license and is available for free.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

1061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb72ba5d2c05eec08d9556c0007f17a7d657d5187de1025a4a0525ace4ac8000?d=identicon)[GianfriAur](/maintainers/GianfriAur)

---

Top Contributors

[![GianfriAur](https://avatars.githubusercontent.com/u/16904504?v=4)](https://github.com/GianfriAur "GianfriAur (2 commits)")

---

Tags

laravelgianfriaur

### Embed Badge

![Health badge](/badges/gianfriaur-laravel-fast-cache/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202583.7k8](/packages/swayok-alternative-laravel-cache)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)[byerikas/cache-tags

Allows for Redis/Valkey cache flushing multiple tagged items by a single tag.

1420.4k](/packages/byerikas-cache-tags)

PHPackages © 2026

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