Skip to content

Commit 91ed8a1

Browse files
committed
import path and readme update
1 parent e922a47 commit 91ed8a1

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ High performance, eviction modes (TTL, NoTTL, Slide), goroutine safe inmemory ca
77

88
### News
99

10-
* `v0.1.0` [released](https://github.com/aahframework/inmemory-cache-provider/releases/latest) and tagged on TBD.
10+
* `v0.1.0` [released](https://github.com/go-aah/inmemory-cache-provider/releases/latest) and tagged on TBD.
1111

1212
## Installation
1313

1414
```bash
15-
go get -u aahframework.org/cache/provider/inmemory
15+
go get -u aahframe.work/cache/provider/inmemory
1616
```
1717

1818
Visit official website https://aahframework.org to learn more about `aah` framework.

inmemory.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright (c) Jeevanandam M. (https://github.com/jeevatkm)
2-
// aahframework.org/cache/provider/inmemory source code and usage is governed by a MIT style
2+
// Source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

5-
package inmemory // import "aahframework.org/cache/provider/inmemory"
5+
package inmemory // import "aahframe.work/cache/provider/inmemory"
66

77
import (
88
"sync"
99
"time"
1010

11-
"aahframework.org/aah.v0/cache"
12-
"aahframework.org/config.v0"
13-
"aahframework.org/log.v0"
11+
"aahframe.work/aah/cache"
12+
"aahframe.work/aah/config"
13+
"aahframe.work/aah/log"
1414
)
1515

1616
//‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

inmemory_test.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Jeevanandam M. (https://github.com/jeevatkm)
2-
// aahframework.org/cache/inmemory source code and usage is governed by a MIT style
2+
// Source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

55
package inmemory
@@ -9,10 +9,9 @@ import (
99
"testing"
1010
"time"
1111

12-
"aahframework.org/essentials.v0"
13-
14-
"aahframework.org/aah.v0/cache"
15-
"aahframework.org/test.v0/assert"
12+
"aahframe.work/aah/cache"
13+
"aahframe.work/aah/essentials"
14+
"github.com/stretchr/testify/assert"
1615
)
1716

1817
func TestInmemoryCacheAddAndGet(t *testing.T) {
@@ -91,7 +90,7 @@ func TestInmemoryMultipleCache(t *testing.T) {
9190
names := []string{"testcache1", "testcache2", "testcache3"}
9291
for _, name := range names {
9392
err := mgr.CreateCache(&cache.Config{Name: name, ProviderName: "inmemory"})
94-
assert.FailNowOnError(t, err, "unable to create cache")
93+
assert.Nil(t, err, "unable to create cache")
9594

9695
c := mgr.Cache(name)
9796
assert.NotNil(t, c)
@@ -120,7 +119,7 @@ func TestInmemorySlideEvictionMode(t *testing.T) {
120119
EvictionMode: cache.EvictionModeSlide,
121120
SweepInterval: 2 * time.Second,
122121
})
123-
assert.FailNowOnError(t, err, "unable to create cache")
122+
assert.Nil(t, err, "unable to create cache")
124123

125124
c := mgr.Cache("testslidemode")
126125
assert.NotNil(t, c)
@@ -174,7 +173,7 @@ func createTestCache(t *testing.T, name string) cache.Cache {
174173
mgr := createCacheMgr()
175174

176175
err := mgr.CreateCache(&cache.Config{Name: name, ProviderName: "inmemory", SweepInterval: 2 * time.Second})
177-
assert.FailNowOnError(t, err, "unable to create cache")
176+
assert.Nil(t, err, "unable to create cache")
178177

179178
c := mgr.Cache(name)
180179
assert.NotNil(t, c)

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Jeevanandam M. (https://github.com/jeevatkm)
2-
// aahframework.org/cache/inmemory source code and usage is governed by a MIT style
2+
// Source code and usage is governed by a MIT style
33
// license that can be found in the LICENSE file.
44

55
package inmemory

0 commit comments

Comments
 (0)