@yandy0725/pi-memory 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/memory-store.ts +0 -6
package/package.json
CHANGED
package/src/memory-store.ts
CHANGED
|
@@ -322,12 +322,6 @@ export class MemoryStore {
|
|
|
322
322
|
return out;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
/** 清空并重建缓存(手工编辑过目录后用)。 */
|
|
326
|
-
async refreshCache(): Promise<void> {
|
|
327
|
-
this.#cache.clear();
|
|
328
|
-
await this.listEntries();
|
|
329
|
-
}
|
|
330
|
-
|
|
331
325
|
/** name 校验:非空、单行、不含 `](`。add 与 replace 共用,否则改名就成了绕过入口。 */
|
|
332
326
|
#validateName(name: string): void {
|
|
333
327
|
if (!name) throw new Error("name is required");
|