PHPackages                             arnaudbagnis/lumberjack-cache-provider - 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. arnaudbagnis/lumberjack-cache-provider

ActivePackage[Caching](/categories/caching)

arnaudbagnis/lumberjack-cache-provider
======================================

Add a Symfony Cache provider into a Lumberjack

00PHP

Since Mar 13Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Lumberjack Cache Provider
=========================

[](#lumberjack-cache-provider)

Lumberjack Cache Provider is a package that allows you to use the Symfony Cache Component in Lumberjack applications. With this package, you can easily implement caching to improve the performance of your Lumberjack application.

Installation
------------

[](#installation)

You can install the package via Composer:

`composer require arnaudbagnis/lumberjack-cache-provider `

Usage
-----

[](#usage)

### Using Symfony Cache

[](#using-symfony-cache)

Symfony Cache is a powerful caching system that supports many different types of caching, including file, array, APCu, Redis, and more. To use Symfony Cache, you first need to create an instance of the cache you want to use. Here's an example of creating a file-based cache:

```
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
$cache = new FilesystemAdapter();

```

Once you have a cache instance, you can use it to store and retrieve data. Here's an example of storing data in the cache:

```
$cache->set('my_key', 'my_value');

```

And here's an example of retrieving data from the cache:

```
$value = $cache->get('my_key');

```

### Adding CacheProvider to LumberjackAdding CacheProvider to Lumberjack

[](#adding-cacheprovider-to-lumberjackadding-cacheprovider-to-lumberjack)

To add the CacheProvider to your Lumberjack application, you need to add it to the list of providers in the app.php file of your theme. Here's an example:

```
return [
    // ...

    /**
     * List of providers to initialise during app boot
     */
    'providers' => [
        // ...
        CacheProvider::class,
    ],

    // ...

    'aliases' => [
        // ...
        'Cache' => CacheProvider::class,
    ],
];

```

Once you've added the provider, you can access the Symfony Cache instance using the Cache alias, like this:

```
Cache::set('my_key', 'my_value');
$value = Cache::get('my_key');

```

That's it! Now you can use Symfony Cache in your Lumberjack application to improve its performance

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/95b30036627452488755b27e920056824620e070fb0d85d5048a720da5361b9c?d=identicon)[arnaudbagnis](/maintainers/arnaudbagnis)

### Embed Badge

![Health badge](/badges/arnaudbagnis-lumberjack-cache-provider/health.svg)

```
[![Health](https://phpackages.com/badges/arnaudbagnis-lumberjack-cache-provider/health.svg)](https://phpackages.com/packages/arnaudbagnis-lumberjack-cache-provider)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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