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 3w 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 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

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

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[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)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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