-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
memory datastore config setting would be nice #1366
Comments
👍 |
I have some basic code for this here: https://github.com/ipfs/go-ipfs/tree/feat/config-ds But its probably best to wait on the s3 datastore changes. |
We now have support for custom datastore configs and plugins. This should now be pretty trivial to implement if anyone wants to pick it up. You may find the following example useful: https://github.com/ipfs/go-ipfs-example-plugin/ |
I'll have a crack. |
Actually, it looks like we support this without any additional plugins. We just need to create a config profile for the "mem" datastore: https://github.com/ipfs/go-ipfs-config/blob/master/profile.go. |
Note that using memory datastore may break between restarts in weird ways:
(this should be fixable, but we have to be careful when fixing pinning) |
Hey! Did someone end up fixing this issue? And if not, would you be willing to compensate a dev for fixing it (even if it's small)? |
There is support here: kubo/repo/fsrepo/datastores.go Line 61 in afa891b
I'll close this given I don't see anything left to do, can reopen if I missed something obviously. |
We used to be able to specify in the config to use an 'in memory' datastore. This would be nice to have again for testing various things.
The text was updated successfully, but these errors were encountered: