PHPackages                             mehr-it/lara-local-synchronized-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. mehr-it/lara-local-synchronized-cache

ActiveLibrary[Caching](/categories/caching)

mehr-it/lara-local-synchronized-cache
=====================================

High-performance local cache which synchronizes automatically on distributed systems

2.1.2(3y ago)02.4kMITPHPPHP &gt;=7.3

Since Mar 29Pushed 3y agoCompare

[ Source](https://github.com/mehr-it/lara-local-synchronized-cache)[ Packagist](https://packagist.org/packages/mehr-it/lara-local-synchronized-cache)[ RSS](/packages/mehr-it-lara-local-synchronized-cache/feed)WikiDiscussions master Synced 3d ago

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

Lara local synchronized cache
=============================

[](#lara-local-synchronized-cache)

High-performance local cache which synchronizes automatically on distributed systems.

Introduction
------------

[](#introduction)

Using PHP files for caching data is one of the fastest caching methods for PHP. Especially opcache makes this method very fast. However, this caching method cannot be used for distributed systems without any kind of synchronization.

This package implements a fast and synchronized local cache. Locally cached data is synchronized periodically and every time when processing a queued job.

The local cache state is synchronized using a common cache backend such as redis or whatever network cache you prefer.

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

[](#installation)

Install via composer:

```
composer require mehr-it/lara-local-synchronized-cache

```

Configuration
-------------

[](#configuration)

```
'local-sync' => [
    'driver' => 'local-synchronized',

    // path for cache data
    'path'   => storage_path('framework/cache/local-sync'),

    // name of the cache used for synchronizing the global state
    'shared_store' => null,

    // time to live for locally cached data (in seconds) before the global state is synchronized again
    'local_ttl' => 60,

    // prefix for keys in shared store
    'shared_store_pfx' => 'loc-sync-cache_',

    // set file permission
    'file_permission' => 0644,

    // set directory permission
    'directory_permission' => 0755,
],

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~52 days

Recently: every ~157 days

Total

13

Last Release

1240d ago

Major Versions

1.2.3 → 2.0.02021-04-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44973729?v=4)[mehr.IT GmbH](/maintainers/mehr-it)[@mehr-it](https://github.com/mehr-it)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mehr-it-lara-local-synchronized-cache/health.svg)

```
[![Health](https://phpackages.com/badges/mehr-it-lara-local-synchronized-cache/health.svg)](https://phpackages.com/packages/mehr-it-lara-local-synchronized-cache)
```

###  Alternatives

[imanghafoori/laravel-widgetize

A minimal yet powerful package to give a better structure and caching opportunity for your Laravel apps.

909137.9k12](/packages/imanghafoori-laravel-widgetize)[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/

202541.1k6](/packages/swayok-alternative-laravel-cache)[alexmg86/laravel-sub-query

Laravel subquery

7538.4k](/packages/alexmg86-laravel-sub-query)[laravel-enso/rememberable

Model caching dependency for Laravel Enso

2863.2k25](/packages/laravel-enso-rememberable)[byerikas/cache-tags

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

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

PHPackages © 2026

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