Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing all stored cores #6

Open
telamon opened this issue Oct 1, 2019 · 2 comments
Open

Listing all stored cores #6

telamon opened this issue Oct 1, 2019 · 2 comments

Comments

@telamon
Copy link

telamon commented Oct 1, 2019

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.
@arunkd13
Copy link

arunkd13 commented Dec 7, 2023

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.

@mafintosh
Copy link
Contributor

yea its planned for the next major, storage doesnt support it atm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants