Skip to content

Commit

Permalink
feat(cache): update cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Dec 9, 2024
1 parent 15e9dc6 commit 07a516d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type cacheNode struct {
}

func (c cacheNode) SetNoExpireCtx(ctx context.Context, key string, val any) error {
return c.node.SetWithExpireCtx(ctx, key, val, -1)
return c.node.SetWithExpireCtx(ctx, key, val, time.Duration(-1))
}

func (c cacheNode) Del(keys ...string) error {
Expand Down

0 comments on commit 07a516d

Please sign in to comment.