wendelladriel/cache-ttl-helper 问题修复 & 功能扩展

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

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

wendelladriel/cache-ttl-helper

最新稳定版本:v1.0.0

Composer 安装命令:

composer require wendelladriel/cache-ttl-helper

包简介

Helper Enum for handling cache TTLs in a simple, easy and friendly way

README 文档

README

Cache TTL Helper

Helper Enum for handling cache TTLs in a simple, easy and friendly way

Packagist PHP from Packagist GitHub Workflow Status (main)

Installation

composer require wendelladriel/cache-ttl-helper

Usage

This package provides a simple Enum class with some helper methods to handle cache TTLs in a simple, easy and friendly way.

All methods are static, and they all return the TTL in seconds.

Methods available

use WendellAdriel\CacheTtlHelper\CacheTTL;

CacheTTL::second(); // 1s
CacheTTL::seconds(30); // 30s

CacheTTL::minute(); // 60s
CacheTTL::minutes(5); // 300s

CacheTTL::hour(); // 3600s
CacheTTL::hours(2); // 7200s

CacheTTL::day(); // 86400s
CacheTTL::days(3); // 259200s

CacheTTL::week(); // 604800s
CacheTTL::weeks(2); // 1209600s

CacheTTL::month(); // 2592000s
CacheTTL::months(6); // 15552000s

CacheTTL::year(); // 31536000s
CacheTTL::years(2); // 63072000s

Credits

Contributing

Check the Contributing Guide.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-18