You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer that doesn't directly keep track of what I stash into corestore - I want to be able to query corestore for a list of cores available in storage.
Conversation dump:
10:17 <telamohn> andrewosh: got a question bout corestore#list(), the docs
says "all cores cached in memory".
10:18 <telamohn> Just to clarify, does that mean that if i restart my node
process I might have an unknown number of cores in storage
that aren't 'cached' in memory because they haven't been
opened yet?
14:51 @<andrewosh> telamohn: yeah what you said first is right: looking in the
code, it returns the list of cores that, in the current
process, have been requested with a `get` or a `default`
14:52 @<andrewosh> so if you restart, that list will be empty. should use a
more descriptive name there `listCachedCores` perhaps
14:53 @<andrewosh> also would be happy extending that with an async version
that lists cores in the dependency graph (so everything in
the corestore)
14:57 <telamohn> andrewosh: yeah i would like to iterate through atleast the
top-level cores that were stored.
The text was updated successfully, but these errors were encountered:
Is there any planned support for this? I really want to add a 'drives list' command (holepunchto/drives#19) which is blocked by not having a Corestore.list.
As a developer that doesn't directly keep track of what I stash into corestore - I want to be able to query corestore for a list of cores available in storage.
Conversation dump:
The text was updated successfully, but these errors were encountered: