mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-29 19:21:51 +08:00
Add info command (#141)
* Generate a new runid for each start of godis * Add info command * Add info command * Generate a new runid for each start of godis * Add unittests for the info command
This commit is contained in:
2
main.go
2
main.go
@@ -4,6 +4,7 @@ import (
|
||||
"fmt"
|
||||
"github.com/hdt3213/godis/config"
|
||||
"github.com/hdt3213/godis/lib/logger"
|
||||
"github.com/hdt3213/godis/lib/utils"
|
||||
RedisServer "github.com/hdt3213/godis/redis/server"
|
||||
"github.com/hdt3213/godis/tcp"
|
||||
"os"
|
||||
@@ -23,6 +24,7 @@ var defaultProperties = &config.ServerProperties{
|
||||
AppendOnly: false,
|
||||
AppendFilename: "",
|
||||
MaxClients: 1000,
|
||||
RunID: utils.RandString(40),
|
||||
}
|
||||
|
||||
func fileExists(filename string) bool {
|
||||
|
||||
Reference in New Issue
Block a user