STATUS_APPROVED
STATUS_APPROVED = 1
已审批(纳入正式治理)
缓存注册表项
职责:缓存治理的数据源——全部缓存 key 登记于此(替代原 config/cache-manager.php 注册表)。 name(逻辑名)是业务引用锚点不可改;key 模板可改(改后清旧实例自动重建,缓存值不丢); status 1=已审批 2=待审批(代码里 remember 未登记名时自动产生)。
$id : int
主键ID
$name : string
逻辑名,锚点,不可改
$key : string
key 模板,{param} 占位
$layer : string
分层:global/user/ttl/permanent
$ttl : int|null
TTL 秒
$tables : array
依赖表
$connection : string
Redis 连接:default/cache
$description : string
说明,审批必填
$status : int
状态:1 已审批、2 待审批
$protected : int
保护锁:1 受保护,任何清理操作不删本缓存;0 不保护
$create_time : string
创建时间
$update_time : string|null
更新时间
┌────────────────── 分区导航(按此顺序阅读)──────────────────┐ 分区 1 · 常量 审批状态 STATUS_* 分区 2 · 表名与属性 $table / $fillable / casts 分区 3 · 模型启动钩子 boot(注册表变更 → 失效) └────────────────────────────────────────────────────────────┘