Skip to content

Commit 9e8df6a

Browse files
authored
Merge pull request #251 from satti-hari-krishna-reddy/cache-fix
include the information of keys that already exist in the cache
2 parents d2ee5d7 + b3d5a42 commit 9e8df6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

shared.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20041,11 +20041,13 @@ func HandleSetCacheKey(resp http.ResponseWriter, request *http.Request) {
2004120041
}
2004220042

2004320043
type returnStruct struct {
20044-
Success bool `json:"success"`
20044+
Success bool `json:"success"`
20045+
KeysExisted []DatastoreKeyMini `json:"keys_existed"`
2004520046
}
2004620047

2004720048
returnData := returnStruct{
20048-
Success: true,
20049+
Success: true,
20050+
KeysExisted: existed,
2004920051
}
2005020052

2005120053
b, err := json.Marshal(returnData)

0 commit comments

Comments
 (0)