marko/page-cache-entity
最新稳定版本:0.6.0
Composer 安装命令:
composer require marko/page-cache-entity
包简介
Marko bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.
README 文档
README
Bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.
Installation
composer require marko/page-cache-entity
Quick Example
use Marko\Database\Entity\Entity; use Marko\PageCache\Contracts\IdentityInterface; class Product extends Entity implements IdentityInterface { public function getIdentities(): array { return ['products', "product-{$this->id}"]; } }
Saving or deleting the entity purges the listed cache tags automatically --- no extra wiring needed.
Documentation
Full usage, API reference, and examples: marko/page-cache-entity
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-12