diff --git a/pkg/infra/remotecache/database_storage.go b/pkg/infra/remotecache/database_storage.go index 51db43474b4..e188f25f76b 100644 --- a/pkg/infra/remotecache/database_storage.go +++ b/pkg/infra/remotecache/database_storage.go @@ -18,7 +18,7 @@ type databaseCache struct { func newDatabaseCache(sqlstore *sqlstore.SqlStore) *databaseCache { dc := &databaseCache{ SQLStore: sqlstore, - log: log.New("distcache.database"), + log: log.New("remotecache.database"), } return dc diff --git a/pkg/infra/remotecache/database_storage_test.go b/pkg/infra/remotecache/database_storage_test.go index 7fde3d325e5..d15e26fd07f 100644 --- a/pkg/infra/remotecache/database_storage_test.go +++ b/pkg/infra/remotecache/database_storage_test.go @@ -15,7 +15,7 @@ func TestDatabaseStorageGarbageCollection(t *testing.T) { db := &databaseCache{ SQLStore: sqlstore, - log: log.New("distcache.database"), + log: log.New("remotecache.database"), } obj := &CacheableStruct{String: "foolbar"} diff --git a/pkg/infra/remotecache/remotecache.go b/pkg/infra/remotecache/remotecache.go index 3e66c0dfb5d..25dbedcaff3 100644 --- a/pkg/infra/remotecache/remotecache.go +++ b/pkg/infra/remotecache/remotecache.go @@ -31,8 +31,8 @@ func init() { // CacheStorage allows the caller to set, get and delete items in the cache. // Cached items are stored as byte arrays and marshalled using "encoding/gob" -// so any struct added to the cache needs to be registred with `distcache.Register` -// ex `distcache.Register(CacheableStruct{})`` +// so any struct added to the cache needs to be registred with `remotecache.Register` +// ex `remotecache.Register(CacheableStruct{})`` type CacheStorage interface { // Get reads object from Cache Get(key string) (interface{}, error)