Skip to content

Commit 16537ee

Browse files
committed
update module path
1 parent c5ed07c commit 16537ee

File tree

7 files changed

+23
-38
lines changed

7 files changed

+23
-38
lines changed

.github/workflows/go.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Go
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Set up Go
8+
uses: actions/setup-go@v3
9+
with:
10+
go-version: ^1.15
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
- name: Run tests
14+
run: go test -race -timeout 1m ./...

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Rene Kroon
3+
Copyright (c) 2022 Jellydator
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Readme.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# TTLCache - an in-memory cache with expiration
22

3-
[![Documentation](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/ReneKroon/ttlcache/v2)
4-
[![Release](https://img.shields.io/github/release/ReneKroon/ttlcache.svg?label=Release)](https://github.com/ReneKroon/ttlcache/releases)
3+
**Although v2 of ttlcache is not yet deprecated, v3 should be used as it
4+
contains quite a few additions and improvements.**
55

66
TTLCache is a simple key/value cache in golang with the following functions:
77

@@ -15,15 +15,9 @@ TTLCache is a simple key/value cache in golang with the following functions:
1515

1616
Note (issue #25): by default, due to historic reasons, the TTL will be reset on each cache hit and you need to explicitly configure the cache to use a TTL that will not get extended.
1717

18-
[![Build Status](https://www.travis-ci.com/ReneKroon/ttlcache.svg?branch=master)](https://travis-ci.com/ReneKroon/ttlcache)
19-
[![Go Report Card](https://goreportcard.com/badge/github.com/ReneKroon/ttlcache)](https://goreportcard.com/report/github.com/ReneKroon/ttlcache)
20-
[![Coverage Status](https://coveralls.io/repos/github/ReneKroon/ttlcache/badge.svg?branch=master)](https://coveralls.io/github/ReneKroon/ttlcache?branch=master)
21-
[![GitHub issues](https://img.shields.io/github/issues/ReneKroon/ttlcache.svg)](https://github.com/ReneKroon/ttlcache/issues)
22-
[![license](https://img.shields.io/github/license/ReneKroon/ttlcache.svg?maxAge=2592000)](https://github.com/ReneKroon/ttlcache/LICENSE)
23-
2418
## Usage
2519

26-
`go get github.com/ReneKroon/ttlcache/v2`
20+
`go get github.com/jellydator/ttlcache/v2`
2721

2822
You can copy it as a full standalone demo program. The first snippet is basic usage, where the second exploits more options in the cache.
2923

@@ -35,7 +29,7 @@ import (
3529
"fmt"
3630
"time"
3731

38-
"github.com/ReneKroon/ttlcache/v2"
32+
"github.com/jellydator/ttlcache/v2"
3933
)
4034

4135
var notFound = ttlcache.ErrNotFound
@@ -65,7 +59,7 @@ import (
6559
"fmt"
6660
"time"
6761

68-
"github.com/ReneKroon/ttlcache/v2"
62+
"github.com/jellydator/ttlcache/v2"
6963
)
7064

7165
var (

bench/bench_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
ttlcache "github.com/ReneKroon/ttlcache/v2"
8+
ttlcache "github.com/jellydator/ttlcache/v2"
99
)
1010

1111
func BenchmarkCacheSetWithoutTTL(b *testing.B) {

cache_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"fmt"
1313
"sync"
1414

15-
. "github.com/ReneKroon/ttlcache/v2"
15+
. "github.com/jellydator/ttlcache/v2"
1616
"github.com/stretchr/testify/assert"
1717
)
1818

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/ReneKroon/ttlcache/v2
1+
module github.com/jellydator/ttlcache/v2
22

33
go 1.15
44

0 commit comments

Comments
 (0)