Skip to content

Commit

Permalink
added get in set
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvyadav1111 committed Nov 6, 2024
1 parent d2b11b7 commit 4c57226
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/eval/store_eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ func evalSET(args []string, store *dstore.Store) *EvalResponse {
exDurationMs = exDuration - utils.GetCurrentTime().UnixMilli()
// If the expiry time is in the past, set exDurationMs to 0
// This will be used to signal immediate expiration
if exDurationMs < 0 {
exDurationMs = 0
}
exDurationMs = int64(math.Max(0, float64(exDurationMs)))
state = Initialized

case XX:
Expand Down

0 comments on commit 4c57226

Please sign in to comment.