oxhq/cachelet-model 问题修复 & 功能扩展

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

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

oxhq/cachelet-model

最新稳定版本:v0.3.0

Composer 安装命令:

composer require oxhq/cachelet-model

包简介

Eloquent model integration for Cachelet.

README 文档

README

Eloquent model caching with Cachelet coordinates.

cachelet-model gives model-derived cache entries a stable module identity, inspectable key payloads, and observer-driven invalidation for model cache families.

Install

composer require oxhq/cachelet-model

Best Fit

Use this package when stale model variants and invalidation blast radius are the main pain.

It provides:

  • Cachelet::forModel(...)
  • $model->cachelet()
  • only(...), exclude(...), withDates(), and withTimestamps()
  • observer-driven invalidation for model prefixes
  • canonical module = model coordinates and telemetry

Example

use Oxhq\Cachelet\Traits\UsesCachelet;

class User extends Model
{
    use UsesCachelet;
}

$profile = $user->cachelet()
    ->exclude(['updated_at'])
    ->ttl(300)
    ->remember(fn () => $user->fresh());

Docs

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固