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(), andwithTimestamps()- observer-driven invalidation for model prefixes
- canonical
module = modelcoordinates 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
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-20