定制 toastnz/dbcache 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

toastnz/dbcache

最新稳定版本:3.0.0

Composer 安装命令:

composer require toastnz/dbcache

包简介

DataObject-based cache for SilverStripe

README 文档

README

DataObject-based cache for SilverStripe.

Requirements

  • SilverStripe 4

Installation

composer require toastnz/dbcache

Set the default expiry time in minutes for cache entries

Toast\DBCache\Helpers\DBCache:
  expiry_minutes: 0

Whether to clear all cached data when ?flush is invoked

Toast\DBCache\Extensions\ControllerDBCacheExtension:
  clear_on_flush: true

Manipulate cache entries

// Cache "filters" for 10 minutes under the namespace "product"
DBCache::set('product.filters', json_encode($products), 10);

// Retrieve from cache
DBCache::get('product.filters');

// Remove from cache
DBCache::clear('product.filters');

// Flush cached data for the "product" namespace
DBCache::flush('product');

// Flush all cached data
DBCache::flush();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固