Skip to content

Commit

Permalink
update module path
Browse files Browse the repository at this point in the history
  • Loading branch information
swithek committed Mar 24, 2022
1 parent c5ed07c commit 16537ee
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 38 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Go
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.15
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: go test -race -timeout 1m ./...
23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Rene Kroon
Copyright (c) 2022 Jellydator

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 5 additions & 11 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TTLCache - an in-memory cache with expiration

[![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)
[![Release](https://img.shields.io/github/release/ReneKroon/ttlcache.svg?label=Release)](https://github.com/ReneKroon/ttlcache/releases)
**Although v2 of ttlcache is not yet deprecated, v3 should be used as it
contains quite a few additions and improvements.**

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

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

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.

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

## Usage

`go get github.com/ReneKroon/ttlcache/v2`
`go get github.com/jellydator/ttlcache/v2`

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.

Expand All @@ -35,7 +29,7 @@ import (
"fmt"
"time"

"github.com/ReneKroon/ttlcache/v2"
"github.com/jellydator/ttlcache/v2"
)

var notFound = ttlcache.ErrNotFound
Expand Down Expand Up @@ -65,7 +59,7 @@ import (
"fmt"
"time"

"github.com/ReneKroon/ttlcache/v2"
"github.com/jellydator/ttlcache/v2"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

ttlcache "github.com/ReneKroon/ttlcache/v2"
ttlcache "github.com/jellydator/ttlcache/v2"
)

func BenchmarkCacheSetWithoutTTL(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"fmt"
"sync"

. "github.com/ReneKroon/ttlcache/v2"
. "github.com/jellydator/ttlcache/v2"
"github.com/stretchr/testify/assert"
)

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/ReneKroon/ttlcache/v2
module github.com/jellydator/ttlcache/v2

go 1.15

Expand Down

0 comments on commit 16537ee

Please sign in to comment.