Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #4 from eko/renamed-to-gocache
BREAKING CHANGE: renamed eko/gache to eko/gocache
  • Loading branch information
eko committed Oct 15, 2019
2 parents e0a0b59 + e78581a commit 001344f
Show file tree
Hide file tree
Showing 25 changed files with 74 additions and 54 deletions.
19 changes: 19 additions & 0 deletions LICENSE
@@ -0,0 +1,19 @@
Copyright (c) 2019 Vincent Composieux <gocache@composieux.fr>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 11 additions & 10 deletions README.md
@@ -1,11 +1,12 @@
[![TravisBuildStatus](https://api.travis-ci.org/eko/gache.svg?branch=master)](https://travis-ci.org/eko/gache)
[![GoDoc](https://godoc.org/github.com/eko/gache?status.png)](https://godoc.org/github.com/eko/gache)
[![GoReportCard](https://goreportcard.com/badge/github.com/eko/gache)](https://goreportcard.com/report/github.com/eko/gache)
[![TravisBuildStatus](https://api.travis-ci.org/eko/gocache.svg?branch=master)](https://travis-ci.org/eko/gocache)
[![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)

Go + Cache = Gache
==================
Gocache
=======

An extendable Go cache library that brings you a lot of features for caching data.
Guess what is Gocache? a Go cache library.
This is an extendable cache library that brings you a lot of features for caching data.

## Overview

Expand Down Expand Up @@ -234,10 +235,10 @@ import (
"time"
"github.com/dgraph-io/ristretto"
"github.com/eko/gache/cache"
"github.com/eko/gache/marshaler"
"github.com/eko/gache/metrics"
"github.com/eko/gache/store"
"github.com/eko/gocache/cache"
"github.com/eko/gocache/marshaler"
"github.com/eko/gocache/metrics"
"github.com/eko/gocache/store"
"github.com/go-redis/redis/v7"
)
Expand Down
4 changes: 2 additions & 2 deletions cache/cache.go
Expand Up @@ -3,8 +3,8 @@ package cache
import (
"strings"

"github.com/eko/gache/codec"
"github.com/eko/gache/store"
"github.com/eko/gocache/codec"
"github.com/eko/gocache/store"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions cache/cache_test.go
Expand Up @@ -5,9 +5,9 @@ import (
"testing"
"time"

"github.com/eko/gache/codec"
"github.com/eko/gache/store"
mocksStore "github.com/eko/gache/test/mocks/store"
"github.com/eko/gocache/codec"
"github.com/eko/gocache/store"
mocksStore "github.com/eko/gocache/test/mocks/store"

"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion cache/chain.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

"github.com/eko/gache/store"
"github.com/eko/gocache/store"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions cache/chain_test.go
Expand Up @@ -4,10 +4,10 @@ import (
"errors"
"testing"

"github.com/eko/gache/store"
mocksCache "github.com/eko/gache/test/mocks/cache"
mocksCodec "github.com/eko/gache/test/mocks/codec"
mocksStore "github.com/eko/gache/test/mocks/store"
"github.com/eko/gocache/store"
mocksCache "github.com/eko/gocache/test/mocks/cache"
mocksCodec "github.com/eko/gocache/test/mocks/codec"
mocksStore "github.com/eko/gocache/test/mocks/store"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions cache/interface.go
@@ -1,8 +1,8 @@
package cache

import (
"github.com/eko/gache/codec"
"github.com/eko/gache/store"
"github.com/eko/gocache/codec"
"github.com/eko/gocache/store"
)

// CacheInterface represents the interface for all caches (aggregates, metric, memory, redis, ...)
Expand Down
2 changes: 1 addition & 1 deletion cache/loadable.go
Expand Up @@ -2,7 +2,7 @@ package cache

import (
"log"
"github.com/eko/gache/store"
"github.com/eko/gocache/store"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions cache/loadable_test.go
Expand Up @@ -4,10 +4,10 @@ import (
"errors"
"testing"

"github.com/eko/gache/store"
mocksCache "github.com/eko/gache/test/mocks/cache"
mocksCodec "github.com/eko/gache/test/mocks/codec"
mocksStore "github.com/eko/gache/test/mocks/store"
"github.com/eko/gocache/store"
mocksCache "github.com/eko/gocache/test/mocks/cache"
mocksCodec "github.com/eko/gocache/test/mocks/codec"
mocksStore "github.com/eko/gocache/test/mocks/store"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions cache/metric.go
@@ -1,8 +1,8 @@
package cache

import (
"github.com/eko/gache/metrics"
"github.com/eko/gache/store"
"github.com/eko/gocache/metrics"
"github.com/eko/gocache/store"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions cache/metric_test.go
Expand Up @@ -3,10 +3,10 @@ package cache
import (
"testing"

mocksCache "github.com/eko/gache/test/mocks/cache"
mocksCodec "github.com/eko/gache/test/mocks/codec"
mocksMetrics "github.com/eko/gache/test/mocks/metrics"
mocksStore "github.com/eko/gache/test/mocks/store"
mocksCache "github.com/eko/gocache/test/mocks/cache"
mocksCodec "github.com/eko/gocache/test/mocks/codec"
mocksMetrics "github.com/eko/gocache/test/mocks/metrics"
mocksStore "github.com/eko/gocache/test/mocks/store"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion codec/codec.go
@@ -1,7 +1,7 @@
package codec

import (
"github.com/eko/gache/store"
"github.com/eko/gocache/store"
)

// Stats allows to returns some statistics of codec usage
Expand Down
4 changes: 2 additions & 2 deletions codec/codec_test.go
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/eko/gache/store"
mocksStore "github.com/eko/gache/test/mocks/store"
"github.com/eko/gocache/store"
mocksStore "github.com/eko/gocache/test/mocks/store"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion codec/interface.go
@@ -1,7 +1,7 @@
package codec

import (
"github.com/eko/gache/store"
"github.com/eko/gocache/store"
)

// CodecInterface represents an instance of a cache codec
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,4 +1,4 @@
module github.com/eko/gache
module github.com/eko/gocache

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions marshaler/marshaler.go
@@ -1,8 +1,8 @@
package marshaler

import (
"github.com/eko/gache/cache"
"github.com/eko/gache/store"
"github.com/eko/gocache/cache"
"github.com/eko/gocache/store"
"github.com/vmihailenco/msgpack"
)

Expand Down
4 changes: 2 additions & 2 deletions marshaler/marshaler_test.go
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/eko/gache/store"
mocksCache "github.com/eko/gache/test/mocks/cache"
"github.com/eko/gocache/store"
mocksCache "github.com/eko/gocache/test/mocks/cache"
"github.com/stretchr/testify/assert"
"github.com/vmihailenco/msgpack"
)
Expand Down
2 changes: 1 addition & 1 deletion metrics/interface.go
@@ -1,6 +1,6 @@
package metrics

import "github.com/eko/gache/codec"
import "github.com/eko/gocache/codec"

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

import (
"github.com/eko/gache/codec"
"github.com/eko/gocache/codec"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
6 changes: 3 additions & 3 deletions metrics/prometheus_test.go
Expand Up @@ -3,9 +3,9 @@ package metrics
import (
"testing"

"github.com/eko/gache/codec"
mocksCodec "github.com/eko/gache/test/mocks/codec"
mocksStore "github.com/eko/gache/test/mocks/store"
"github.com/eko/gocache/codec"
mocksCodec "github.com/eko/gocache/test/mocks/codec"
mocksStore "github.com/eko/gocache/test/mocks/store"
"github.com/prometheus/client_golang/prometheus"
dto "github.com/prometheus/client_model/go"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion 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/cache/setter_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 001344f

Please sign in to comment.