rsthn/rose-ext-cache 问题修复 & 功能扩展

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

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

rsthn/rose-ext-cache

Composer 安装命令:

composer require rsthn/rose-ext-cache

包简介

Cache Extension (Wind)

README 文档

README

This extension adds cache features to Wind.

NOTE: The extension detects the presence of Wind, when not installed, this extension will simply not be loaded.

Cache entries can contain any type of object, each entry is identified by an id which is just a string identifier used as a filename. Cache entries are stored in the resources/.cache directory.

The default TTL (time-to-live) of the cache entries is 3600 seconds, equivalent to 1 hour.

Installation

composer require rsthn/rose-ext-cache

Expression Functions

cache::valid id:string tag:string [ttl:integer]

Determines if the cache entry identified by id is valid for the specified TTL (in seconds). Note that if no TTL is specified the default will be used.

cache::touch id:string tag:string

Sets the modified time of a cache entry identified by id to the current time to prevent cache invalidation.

cache::get id:string tag:string [ttl:integer] value:object

Returns the contents of a cache entry given its id or creates it with the specified value if the entry is no longer valid or does not exist.

cache::path id:string

Returns the path to a cache entry given its id, regardless if it exists or is valid or not.

cache::pass id:string tag:string [ttl:integer] value:object

Uses similar syntax as cache::get but does not actually use the cache, it simply directly returns the value. Used as a quick way to bypass cache to run tests while maintaining the cache::get syntax.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-08-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固