2017 © Pedro Peláez
 

utility cached-valuestore

An extension of spatie/valuestore with local caching.

image

timacdonald/cached-valuestore

An extension of spatie/valuestore with local caching.

  • Friday, May 11, 2018
  • by timacdonald
  • Repository
  • 1 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 15 % Grown

The README.md

Cached Valuestore

Latest Stable Version Total Downloads License, (*1)

This is an extension of 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., (*2)

Installation

You can install using composer from Packagist, (*3)

$ composer require timacdonald/cached-valuestore

Usage

Please refer to the original package docs 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., (*4)

$valuestore->clearCache();

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., (*5)

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();.

The Versions

11/05 2018

dev-master

9999999-dev

An extension of spatie/valuestore with local caching.

  Sources   Download

MIT

The Requires

 

The Development Requires

cache valuestore

25/02 2018

v1.0.0

1.0.0.0

An extension of spatie/valuestore with local caching.

  Sources   Download

MIT

The Requires

 

The Development Requires

cache valuestore