mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* add anon sessions package * add usage stat fn * implement count for cache * add anonservice to authn broker * lint * add tests for remote cache count * move anon service to services * wrap tagging in goroutine * make func used
19 lines
368 B
Go
19 lines
368 B
Go
//go:build redis
|
|
// +build redis
|
|
|
|
package remotecache
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
)
|
|
|
|
func TestRedisCacheStorage(t *testing.T) {
|
|
|
|
opts := &setting.RemoteCacheOptions{Name: redisCacheType, ConnStr: "addr=localhost:6379"}
|
|
client := createTestClient(t, opts, nil)
|
|
runTestsForClient(t, client)
|
|
runCountTestsForClient(t, opts, nil)
|
|
}
|