承接 msolutions/tag-cache 相关项目开发

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

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

msolutions/tag-cache

Composer 安装命令:

composer require msolutions/tag-cache

包简介

File tag caching package

README 文档

README

Version 0.9.4

This library is build to fulfill the requirement of tag caching system

Features

  • Stores caching data in a organize way
  • Auto cache expiring
  • Reducing the SQL query requests

Installation

composer require msolutions/tag-cache

Implementing

use MSL\TagCache;

//caching query or any other data

$unique_key = "unique-name";
$ttl = (60*60);//timing for expiry in seconds

$result = TagCache::remember($unique_key, $ttl, function() {
    //database query fetching should be inside this function
    $cache_data = Model::get(); //database fetch query 
    return $cache_data;
}, ["tag1", "tag2"]);

Removing Cache

$unique_key = "unique-name"; //you cache unique key
TagCache::flush_cache(["tag1", "tag2"], $unique_key);

Removing all cache

TagCache::flush_all();

This open source package is developed for general use, any of developers can use this for free.

  • Please share your comments and ideas to improve the package.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固