axn/cached-valuestore 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

axn/cached-valuestore

Composer 安装命令:

composer require axn/cached-valuestore

包简介

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

README 文档

README

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.

This is a fork of Cached Valuestore by Tim MacDonald until he finds time to update his. If he can find it between two awesomes features/improvement he brings to Laravel.

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

You can install using composer from Packagist

$ composer require axn/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.

$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.

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

统计信息

  • 总下载量: 1.16k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固