WithInMemory returns a new Options value with Inmemory mode set to the given value. When badger is running in InMemory mode, everything is stored in memory. No value/sst files are created. In case of a crash all data will be lost.
(b bool)
| 579 | // When badger is running in InMemory mode, everything is stored in memory. No value/sst files are |
| 580 | // created. In case of a crash all data will be lost. |
| 581 | func (opt Options) WithInMemory(b bool) Options { |
| 582 | opt.InMemory = b |
| 583 | return opt |
| 584 | } |
| 585 | |
| 586 | // WithZSTDCompressionLevel returns a new Options value with ZSTDCompressionLevel set |
| 587 | // to the given value. |
no outgoing calls