mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
14 lines
203 B
Go
14 lines
203 B
Go
package bitcask
|
|
|
|
func Example() {
|
|
_, _ = Open("path/to/db")
|
|
}
|
|
|
|
func Example_withOptions() {
|
|
opts := []Option{
|
|
WithMaxKeySize(1024),
|
|
WithMaxValueSize(4096),
|
|
}
|
|
_, _ = Open("path/to/db", opts...)
|
|
}
|