Documentation ¶
Overview ¶
An in-memory database for testing
This database is completely in memory and can be used as a reference for your own implementation.
Since it has rather high memory use, it is not recommended to be used in production. For a good in-memory database, see the bloom driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemDB ¶
type MemDB map[string]struct{}
This is the simplest possible database that must be supported. If you can mimmic this with your database you are good to go!
type MemDBBulk ¶
type MemDBBulk map[string]struct{}
MemDBBulk is the same as MemDB, but also satisfies the bulk interface.
func (*MemDBBulk) AddMultiple ¶
AddMultiple is the function that will be called with several items at once.
Click to show internal directories.
Click to hide internal directories.