feat add set command

This commit is contained in:
Xiang Li
2013-10-14 22:44:17 -07:00
parent 2aeb25e80c
commit 53a9bd0618
5 changed files with 42 additions and 8 deletions

View File

@@ -39,11 +39,10 @@ func SetKeyHandler(w http.ResponseWriter, req *http.Request, s Server) error {
}
} else {
c = &store.CreateCommand{
c = &store.SetCommand{
Key: key,
Value: value,
ExpireTime: expireTime,
Force: true,
}
}