mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-09 01:40:20 +08:00
Merge branch 'main' of https://github.com/EchoVault/EchoVault into enhancement/62-append-command
This commit is contained in:
@@ -29,7 +29,7 @@ func handleSetRange(params internal.HandlerFuncParams) ([]byte, error) {
|
||||
}
|
||||
|
||||
key := keys.WriteKeys[0]
|
||||
keyExists := params.KeysExist(keys.WriteKeys)[key]
|
||||
keyExists := params.KeysExist(params.Context, keys.WriteKeys)[key]
|
||||
|
||||
offset, ok := internal.AdaptType(params.Command[2]).(int)
|
||||
if !ok {
|
||||
@@ -93,7 +93,7 @@ func handleStrLen(params internal.HandlerFuncParams) ([]byte, error) {
|
||||
}
|
||||
|
||||
key := keys.ReadKeys[0]
|
||||
keyExists := params.KeysExist(keys.ReadKeys)[key]
|
||||
keyExists := params.KeysExist(params.Context, keys.ReadKeys)[key]
|
||||
|
||||
if !keyExists {
|
||||
return []byte(":0\r\n"), nil
|
||||
@@ -115,7 +115,7 @@ func handleSubStr(params internal.HandlerFuncParams) ([]byte, error) {
|
||||
}
|
||||
|
||||
key := keys.ReadKeys[0]
|
||||
keyExists := params.KeysExist(keys.ReadKeys)[key]
|
||||
keyExists := params.KeysExist(params.Context, keys.ReadKeys)[key]
|
||||
|
||||
start, startOk := internal.AdaptType(params.Command[2]).(int)
|
||||
end, endOk := internal.AdaptType(params.Command[3]).(int)
|
||||
|
Reference in New Issue
Block a user