Update go-redis to v9 and gocache to v4

This commit is contained in:
Stefan Aurori 2024-03-10 12:46:53 -04:00
parent 740aebd1a9
commit 472dc0c358
7 changed files with 44 additions and 220 deletions

View file

@ -2,10 +2,11 @@ package services
import (
"context"
"errors"
"testing"
"time"
"github.com/go-redis/redis/v8"
lib_store "github.com/eko/gocache/lib/v4/store"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
@ -63,7 +64,7 @@ func TestCacheClient(t *testing.T) {
Key(key).
Type(new(cacheTest)).
Fetch(context.Background())
assert.Equal(t, redis.Nil, err)
assert.True(t, errors.Is(err, &lib_store.NotFound{}))
}
assertFlushed()