Interface: CachePort¶
WHERE — store/retrieve installed deps.
v1.0: fully async. All four methods may do filesystem / network IO (FilesystemCache uses fs/promises; Redis/HTTP caches are inherently async). Hot path concerns about prompt-building are addressed by caching results in-memory at higher layers, not by sync IO.
Methods¶
has()¶
Parameters¶
| Parameter | Type |
|---|---|
scope |
string |
key |
string |
Returns¶
Promise\<boolean>
loadAll()¶
Parameters¶
| Parameter | Type |
|---|---|
scope |
string |
readers? |
ReaderPort[] |
Returns¶
Promise\<Record\<string, unknown>[]>
loadKey()¶
Parameters¶
| Parameter | Type |
|---|---|
scope |
string |
key |
string |
readers? |
ReaderPort[] |
Returns¶
Promise\<Record\<string, unknown>[]>
store()¶
Parameters¶
| Parameter | Type |
|---|---|
scope |
string |
key |
string |
items |
CacheItem[] |
Returns¶
Promise\<void>