StoreOnDiskOpt is a TestServer option that can be passed to NewTestServer to enable storing database in memory.
()
| 273 | // StoreOnDiskOpt is a TestServer option that can be passed to NewTestServer |
| 274 | // to enable storing database in memory. |
| 275 | func StoreOnDiskOpt() TestServerOpt { |
| 276 | return func(args *testServerArgs) { |
| 277 | args.storeOnDisk = true |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | // SetStoreMemSizeOpt is a TestServer option that can be passed to NewTestServer |
| 282 | // to set the proportion of available memory that is allocated |
no outgoing calls
searching dependent graphs…