Skip to content

Commit

Permalink
[registry-facade] Remove Redis expiration from resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf authored and roboquat committed May 27, 2022
1 parent d8fb7fd commit 5b8c8d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/registry-facade/pkg/registry/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package registry
import (
"context"
"encoding/json"
"time"

"github.com/containerd/containerd/remotes"
redis "github.com/go-redis/redis/v8"
Expand Down Expand Up @@ -57,7 +56,7 @@ func (rcr *RedisCachedResolver) Resolve(ctx context.Context, ref string) (name s
}

if raw, err := json.Marshal(resolverResult{Name: name, Desc: desc}); err == nil {
rcr.Client.Set(ctx, "resolve."+ref, string(raw), 2*time.Hour)
rcr.Client.Set(ctx, "resolve."+ref, string(raw), 0)
}

return
Expand Down

0 comments on commit 5b8c8d3

Please sign in to comment.