QueryCacheEntityMetadata
Defined in: packages/rxdb/src/entity/metadata-options.interface.ts:947
实体元数据,用于 QueryCache 新鲜度比较
这是运行时类型,不对应物理表。用于元数据查询结果,
通过比较本地和远程的 updatedAt 来判断数据是否需要更新。
Example
const remoteMetadata: QueryCacheEntityMetadata[] = [
{ id: 'entity-1', updatedAt: '2026-01-12T10:00:00Z' },
{ id: 'entity-2', updatedAt: '2026-01-12T09:30:00Z' },
];
Properties
id
id: string;
Defined in: packages/rxdb/src/entity/metadata-options.interface.ts:949
实体唯一标识
updatedAt
updatedAt: string;
Defined in: packages/rxdb/src/entity/metadata-options.interface.ts:951
最后更新时间 (ISO 8601 字符串)