Skip to content

Commit

Permalink
update go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyahui committed Dec 29, 2023
1 parent d23f9fd commit feb4bdc
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 137 deletions.
3 changes: 2 additions & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cache
import (
"bytes"
"encoding/gob"
"errors"
"net/http"
"net/url"
"sort"
Expand Down Expand Up @@ -85,7 +86,7 @@ func cache(
return
}

if err != persist.ErrCacheMiss {
if !errors.Is(err, persist.ErrCacheMiss) {
cfg.logger.Errorf("get cache error: %s, cache key: %s", err, cacheKey)
}
cfg.missCacheCallback(c)
Expand Down
21 changes: 5 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@ module github.com/chenyahui/gin-cache
go 1.13

require (
github.com/bytedance/sonic v1.10.2 // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-gonic/gin v1.9.1
github.com/go-playground/validator/v10 v10.16.0 // indirect
github.com/gin-gonic/gin v1.7.7
github.com/go-redis/redis/v8 v8.11.5
github.com/jellydator/ttlcache/v2 v2.11.1
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/pelletier/go-toml/v2 v2.1.1 // indirect
github.com/stretchr/testify v1.8.4
github.com/ugorji/go/codec v1.2.12 // indirect
golang.org/x/arch v0.6.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sync v0.5.0
google.golang.org/protobuf v1.32.0 // indirect
)
github.com/stretchr/testify v1.7.1
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading

0 comments on commit feb4bdc

Please sign in to comment.