承接 fredbradley/cacher 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

fredbradley/cacher

Composer 安装命令:

composer require fredbradley/cacher

包简介

A Multiframework compatible Cache interface.

README 文档

README

Latest Version on Packagist Software License StyleCI Status Total Downloads

In my day job, I work regularly with both Laravel and WordPress. I also make packages that are needed to be compatible with both. It becomes a right pain, when it comes to caching, to write out if statements for each framework. So I created this small script which does that for me.

Installation

You can install the package via composer:

composer require fredbradley/cacher

Usage

use FredBradley\Cacher;

Cacher::remember('cache_key_name', 300, function() {
    // Your logic
    $value = "value";
    return $value;
});

/*
 * Will set the value of 'cache_key_name' to the return value of the Closure callback and 
 * save in the cache for 5 minutes (300 seconds)
 */

There's only a small handful of methods in the one class. It's really basic, but amazingly wonderful!

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email code@fredbradley.co.uk instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固