Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
王录祥 committed Jun 30, 2023
1 parent 4d218e8 commit eac8633
Show file tree
Hide file tree
Showing 32 changed files with 60 additions and 60 deletions.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If you have a question, please feel free to open a new issue on this repository.

## Bug Reports

Search through [Github Issues](https://github.com/eko/gocache/issues) to see if the bug has already been reported. If so, please comment with any additional information.
Search through [Github Issues](https://github.com/wlxwlxwlx/gocache/issues) to see if the bug has already been reported. If so, please comment with any additional information.

New bug reports must include:

Expand All @@ -39,7 +39,7 @@ Lacking reports may be autoclosed with a link to these instructions.

## Feature Requests

Search through [Github Pull Requests](https://github.com/eko/gocache/pulls) to see if someone has already suggested the feature. If so, please provide support with a [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) and add your own use case.
Search through [Github Pull Requests](https://github.com/wlxwlxwlx/gocache/pulls) to see if someone has already suggested the feature. If so, please provide support with a [reaction](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) and add your own use case.

To open a new feature request, please include:

Expand All @@ -60,12 +60,12 @@ Pull Requests modifying source code, including backwards compatible additions, w

Pull requests must:

1. Be forked off the [master](https://github.com/eko/gocache/tree/master) branch.
1. Be forked off the [master](https://github.com/wlxwlxwlx/gocache/tree/master) branch.
2. Pass the linter and conform to existing coding styles.
3. Commits are [squashed](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Squashing-Commits) to minimally coherent units of changes.
4. Are accompanied by tests covering the new feature or demonstrating the bug for fixes.
5. Serve a single atomic purpose (add one feature or fix one bug).
6. Introduce only changes that further the PR's singular purpose (ex. do not tweak an unrelated config along with adding your feature).
7. Not break any existing unit or end to end tests.

**Important:** By issuing a Pull Request you agree to allow the project owners to license your work under the terms of the [License](https://github.com/eko/gocache/blob/master/LICENSE).
**Important:** By issuing a Pull Request you agree to allow the project owners to license your work under the terms of the [License](https://github.com/wlxwlxwlx/gocache/blob/master/LICENSE).
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: [eko]
github: [wlxwlxwlx]
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Test](https://github.com/eko/gocache/actions/workflows/all.yml/badge.svg?branch=master)](https://github.com/eko/gocache/actions/workflows/all.yml)
[![GoDoc](https://godoc.org/github.com/eko/gocache?status.png)](https://godoc.org/github.com/eko/gocache)
[![GoReportCard](https://goreportcard.com/badge/github.com/eko/gocache)](https://goreportcard.com/report/github.com/eko/gocache)
[![Test](https://github.com/wlxwlxwlx/gocache/actions/workflows/all.yml/badge.svg?branch=master)](https://github.com/wlxwlxwlx/gocache/actions/workflows/all.yml)
[![GoDoc](https://godoc.org/github.com/wlxwlxwlx/gocache?status.png)](https://godoc.org/github.com/wlxwlxwlx/gocache)
[![GoReportCard](https://goreportcard.com/badge/github.com/wlxwlxwlx/gocache)](https://goreportcard.com/report/github.com/wlxwlxwlx/gocache)
[![codecov](https://codecov.io/gh/eko/gocache/branch/master/graph/badge.svg)](https://codecov.io/gh/eko/gocache)

Gocache
Expand Down Expand Up @@ -354,15 +354,15 @@ Mix this with expiration times on your caches to have a fine tuned control on ho
To begin working with the latest version of go-cache, you can use the following command:

```go
go get github.com/eko/gocache/v2
go get github.com/wlxwlxwlx/gocache/v2
```

To avoid any errors when trying to import your libraries use the following import statement:

```go
import (
"github.com/eko/gocache/v2/cache"
"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/cache"
"github.com/wlxwlxwlx/gocache/v2/store"
)
```

Expand Down
4 changes: 2 additions & 2 deletions cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"reflect"
"time"

"github.com/eko/gocache/v2/codec"
"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/codec"
"github.com/wlxwlxwlx/gocache/v2/store"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"testing"
"time"

"github.com/eko/gocache/v2/codec"
"github.com/eko/gocache/v2/store"
mocksStore "github.com/eko/gocache/v2/test/mocks/store"
"github.com/wlxwlxwlx/gocache/v2/codec"
"github.com/wlxwlxwlx/gocache/v2/store"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion cache/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/store"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions cache/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"testing"
"time"

"github.com/eko/gocache/v2/store"
mocksCache "github.com/eko/gocache/v2/test/mocks/cache"
mocksCodec "github.com/eko/gocache/v2/test/mocks/codec"
mocksStore "github.com/eko/gocache/v2/test/mocks/store"
"github.com/wlxwlxwlx/gocache/v2/store"
mocksCache "github.com/wlxwlxwlx/gocache/v2/test/mocks/cache"
mocksCodec "github.com/wlxwlxwlx/gocache/v2/test/mocks/codec"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions cache/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"time"

"github.com/eko/gocache/v2/codec"
"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/codec"
"github.com/wlxwlxwlx/gocache/v2/store"
)

// CacheInterface represents the interface for all caches (aggregates, metric, memory, redis, ...)
Expand Down
2 changes: 1 addition & 1 deletion cache/loadable.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"sync"

"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/store"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cache/loadable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/eko/gocache/v2/store"
mocksCache "github.com/eko/gocache/v2/test/mocks/cache"
"github.com/wlxwlxwlx/gocache/v2/store"
mocksCache "github.com/wlxwlxwlx/gocache/v2/test/mocks/cache"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions cache/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cache
import (
"context"

"github.com/eko/gocache/v2/metrics"
"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/metrics"
"github.com/wlxwlxwlx/gocache/v2/store"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions cache/metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"testing"
"time"

"github.com/eko/gocache/v2/store"
mocksCache "github.com/eko/gocache/v2/test/mocks/cache"
mocksCodec "github.com/eko/gocache/v2/test/mocks/codec"
mocksMetrics "github.com/eko/gocache/v2/test/mocks/metrics"
mocksStore "github.com/eko/gocache/v2/test/mocks/store"
"github.com/wlxwlxwlx/gocache/v2/store"
mocksCache "github.com/wlxwlxwlx/gocache/v2/test/mocks/cache"
mocksCodec "github.com/wlxwlxwlx/gocache/v2/test/mocks/codec"
mocksMetrics "github.com/wlxwlxwlx/gocache/v2/test/mocks/metrics"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/store"
)

// Stats allows to returns some statistics of codec usage
Expand Down
4 changes: 2 additions & 2 deletions codec/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"testing"
"time"

"github.com/eko/gocache/v2/store"
mocksStore "github.com/eko/gocache/v2/test/mocks/store"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/wlxwlxwlx/gocache/v2/store"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store"
)

func TestNew(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion codec/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"time"

"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/store"
)

// CodecInterface represents an instance of a cache codec
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/eko/gocache/v2
module github.com/wlxwlxwlx/gocache/v2

go 1.17

Expand Down
4 changes: 2 additions & 2 deletions marshaler/marshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/vmihailenco/msgpack"

"github.com/eko/gocache/v2/cache"
"github.com/eko/gocache/v2/store"
"github.com/wlxwlxwlx/gocache/v2/cache"
"github.com/wlxwlxwlx/gocache/v2/store"
)

// Marshaler is the struct that marshal and unmarshal cache values
Expand Down
4 changes: 2 additions & 2 deletions marshaler/marshaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"testing"
"time"

"github.com/eko/gocache/v2/store"
mocksCache "github.com/eko/gocache/v2/test/mocks/cache"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/vmihailenco/msgpack"
"github.com/wlxwlxwlx/gocache/v2/store"
mocksCache "github.com/wlxwlxwlx/gocache/v2/test/mocks/cache"
)

type testCacheValue struct {
Expand Down
2 changes: 1 addition & 1 deletion metrics/interface.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package metrics

import "github.com/eko/gocache/v2/codec"
import "github.com/wlxwlxwlx/gocache/v2/codec"

// MetricsInterface represents the metrics interface for all available providers
type MetricsInterface interface {
Expand Down
2 changes: 1 addition & 1 deletion metrics/prometheus.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package metrics

import (
"github.com/eko/gocache/v2/codec"
"github.com/wlxwlxwlx/gocache/v2/codec"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
Expand Down
6 changes: 3 additions & 3 deletions metrics/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"testing"
"time"

"github.com/eko/gocache/v2/codec"
mocksCodec "github.com/eko/gocache/v2/test/mocks/codec"
mocksStore "github.com/eko/gocache/v2/test/mocks/store"
"github.com/wlxwlxwlx/gocache/v2/codec"
mocksCodec "github.com/wlxwlxwlx/gocache/v2/test/mocks/codec"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store"
"github.com/golang/mock/gomock"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/testutil"
Expand Down
2 changes: 1 addition & 1 deletion store/bigcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

mocksStore "github.com/eko/gocache/v2/test/mocks/store/clients"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store/clients"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion store/freecache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

mocksStore "github.com/eko/gocache/v2/test/mocks/store/clients"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store/clients"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion store/go_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

mocksStore "github.com/eko/gocache/v2/test/mocks/store/clients"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store/clients"
"github.com/golang/mock/gomock"
"github.com/patrickmn/go-cache"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion store/memcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/bradfitz/gomemcache/memcache"
mocksStore "github.com/eko/gocache/v2/test/mocks/store/clients"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store/clients"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion store/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

mocksStore "github.com/eko/gocache/v2/test/mocks/store/clients"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store/clients"
"github.com/go-redis/redis/v8"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion store/rediscluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

mocksStore "github.com/eko/gocache/v2/test/mocks/store/clients"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store/clients"
"github.com/go-redis/redis/v8"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion store/ristretto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

mocksStore "github.com/eko/gocache/v2/test/mocks/store/clients"
mocksStore "github.com/wlxwlxwlx/gocache/v2/test/mocks/store/clients"
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions test/mocks/cache/cache_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/mocks/codec/codec_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/mocks/metrics/metrics_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/mocks/store/store_interface.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eac8633

Please sign in to comment.