add aof-use-rdb-preamble

This commit is contained in:
xing-you-ji
2023-04-08 06:11:02 +08:00
committed by finley
parent 25bbd82da5
commit 1e767b6797
19 changed files with 338 additions and 188 deletions

View File

@@ -1,8 +1,10 @@
package database
import (
"github.com/hdt3213/godis/interface/redis"
"time"
"github.com/hdt3213/godis/interface/redis"
"github.com/hdt3213/rdb/core"
)
// CmdLine is alias for [][]byte, represents a command line
@@ -13,6 +15,7 @@ type DB interface {
Exec(client redis.Connection, cmdLine [][]byte) redis.Reply
AfterClientClose(c redis.Connection)
Close()
LoadRDB(dec *core.Decoder) error
}
// DBEngine is the embedding storage engine exposing more methods for complex application