2015-03-16 10:27:38 +00:00
|
|
|
package common
|
2014-02-14 22:56:09 +00:00
|
|
|
|
|
|
|
// Database interface
|
|
|
|
type Database interface {
|
2015-06-20 18:31:11 +00:00
|
|
|
Put(key []byte, value []byte) error
|
2014-02-14 22:56:09 +00:00
|
|
|
Get(key []byte) ([]byte, error)
|
2014-02-24 11:12:01 +00:00
|
|
|
Delete(key []byte) error
|
2014-02-14 22:56:09 +00:00
|
|
|
Close()
|
2015-04-22 10:46:41 +00:00
|
|
|
Flush() error
|
2014-02-14 22:56:09 +00:00
|
|
|
}
|