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

Does peddle perssistant released? #380

Closed
lucasjinreal opened this issue Mar 30, 2024 · 5 comments
Closed

Does peddle perssistant released? #380

lucasjinreal opened this issue Mar 30, 2024 · 5 comments

Comments

@lucasjinreal
Copy link

Does peddle perssistant released?

@mochi-co
Copy link
Collaborator

mochi-co commented Apr 1, 2024

Hi @lucasjinreal - Pebble has been added in v2.6.1

@mochi-co mochi-co closed this as completed Apr 1, 2024
@lucasjinreal
Copy link
Author

thanks, does the cache size unbounded issue has been tested for now?

@werbenhu
Copy link
Member

werbenhu commented Apr 2, 2024

@lucasjinreal What kind of tests are you referring to? You can refer to test #375 here. Additionally, the test coverage of Pebble is 100%, you can also check hooks/storage/pebble/pebble_test.go.

@lucasjinreal
Copy link
Author

Will the cache size still unbounded? Meanwhile, just wonder how to enable it any tutorial about this?

@werbenhu
Copy link
Member

werbenhu commented Apr 2, 2024

Please refer to the instructions about PebbleDB in the readme.

Pebble DB

There's also a Pebble Db storage hook if you prefer file-based storage. It can be added and configured in much the same way as the other hooks (with somewhat less options).

err := server.AddHook(new(pebble.Hook), &pebble.Options{
 Path: pebblePath,
Mode: pebble.NoSync,
})
if err != nil {
 log.Fatal(err)
}

For more information on how the pebble hook works, or how to use it, see the examples/persistence/pebble/main.go or hooks/storage/pebble code.

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