Code Monkey home page Code Monkey logo

Comments (5)

mochi-co avatar mochi-co commented on August 28, 2024

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

from server.

lucasjinreal avatar lucasjinreal commented on August 28, 2024

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

from server.

werbenhu avatar werbenhu commented on August 28, 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.

from server.

lucasjinreal avatar lucasjinreal commented on August 28, 2024

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

from server.

werbenhu avatar werbenhu commented on August 28, 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.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.