mirror of
https://github.com/HDT3213/godis.git
synced 2025-09-27 13:12:19 +08:00
using TCC for MSetNX in cluster
This commit is contained in:
@@ -10,7 +10,7 @@ type CmdLine = [][]byte
|
||||
|
||||
// DB is the interface for redis style storage engine
|
||||
type DB interface {
|
||||
Exec(client redis.Connection, args [][]byte) redis.Reply
|
||||
Exec(client redis.Connection, cmdLine [][]byte) redis.Reply
|
||||
AfterClientClose(c redis.Connection)
|
||||
Close()
|
||||
}
|
||||
@@ -18,7 +18,7 @@ type DB interface {
|
||||
// EmbedDB is the embedding storage engine exposing more methods for complex application
|
||||
type EmbedDB interface {
|
||||
DB
|
||||
ExecWithLock(conn redis.Connection, args [][]byte) redis.Reply
|
||||
ExecWithLock(conn redis.Connection, cmdLine [][]byte) redis.Reply
|
||||
ExecMulti(conn redis.Connection, watching map[string]uint32, cmdLines []CmdLine) redis.Reply
|
||||
GetUndoLogs(dbIndex int, cmdLine [][]byte) []CmdLine
|
||||
ForEach(dbIndex int, cb func(key string, data *DataEntity, expiration *time.Time) bool)
|
||||
|
Reference in New Issue
Block a user