PHPackages                             axn/cached-valuestore - 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. axn/cached-valuestore

ActiveUtility[Caching](/categories/caching)

axn/cached-valuestore
=====================

An extension of spatie/valuestore with in-memory caching.

2.0.4(3y ago)0989MITPHPPHP ^8.0

Since Feb 25Pushed 3y agoCompare

[ Source](https://github.com/AXN-Informatique/cached-valuestore)[ Packagist](https://packagist.org/packages/axn/cached-valuestore)[ RSS](/packages/axn-cached-valuestore/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

Cached Valuestore
=================

[](#cached-valuestore)

This is an extension of [`spatie/valuestore`](https://github.com/spatie/valuestore) that introduces a local cache in the class. Thanks to Spatie for providing such a great package ecosystem. This is an under appreciated awesome package IMO.

---

*This is a fork of [Cached Valuestore](https://github.com/timacdonald/cached-valuestore) by [Tim MacDonald](https://github.com/timacdonald) until he finds time to update his. If he can find it between two awesomes features/improvement he brings to [Laravel](https://laravel.com/).*

**A very big thank you to him for all the work he does!**

In order to facilitate the use of this fork we allowed ourselves to put our own vendor rather than having to indicate the location of the repository in the compser.json file. But we left the original namespace.

---

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

[](#installation)

You can install using [composer](https://getcomposer.org/) from [Packagist](https://packagist.org/packages/axn/cached-valuestore)

```
$ composer require axn/cached-valuestore

```

Usage
-----

[](#usage)

Please refer to the [original package docs](https://github.com/spatie/valuestore) for general usage. The only new method is the ability to clear the cache - however this is done when persisting so you probably won't ever need it.

```
$valuestore->clearCache();
```

Thanksware
----------

[](#thanksware)

You are free to use this package, but I ask that you reach out to someone (not me) who has previously, or is currently, maintaining or contributing to an open source library you are using in your project and thank them for their work. Consider your entire tech stack: packages, frameworks, languages, databases, operating systems, frontend, backend, etc.

Upgrade v1 &gt; v2
------------------

[](#upgrade-v1--v2)

- The cache is now an instance variable rather than a static variable.
- Any calls to `Valuestore::clearCache();` need to be replaced with `$valuestore->clearCache();`.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 68.4% 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 ~606 days

Total

4

Last Release

1184d ago

Major Versions

v1.0.0 → v2.0.02018-11-19

PHP version history (2 changes)v1.0.0PHP ^7.0

2.0.3PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1314974?v=4)[Axel Neumann](/maintainers/axn)[@axn](https://github.com/axn)

---

Top Contributors

[![timacdonald](https://avatars.githubusercontent.com/u/24803032?v=4)](https://github.com/timacdonald "timacdonald (13 commits)")[![forxer](https://avatars.githubusercontent.com/u/407917?v=4)](https://github.com/forxer "forxer (5 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

cachevaluestore

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/axn-cached-valuestore/health.svg)

```
[![Health](https://phpackages.com/badges/axn-cached-valuestore/health.svg)](https://phpackages.com/packages/axn-cached-valuestore)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2512.2M6](/packages/beste-in-memory-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33113.0k](/packages/anahkiasen-flatten)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23517.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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