mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 14:42:01 +08:00

* feat(cache): remove the references of old cache * feat(cache): add orgID in query range modules pt1 * feat(cache): add orgID in query range modules pt2 * feat(cache): add orgID in query range modules pt3 * feat(cache): preload metrics for all orgs * feat(cache): fix ruler * feat(cache): fix go build * feat(cache): add orgID to rule * feat(cache): fix tests * feat(cache): address review comments * feat(cache): use correct errors * feat(cache): fix tests * feat(cache): add the cache test package
21 lines
402 B
Go
21 lines
402 B
Go
package cachetest
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/SigNoz/signoz/pkg/cache"
|
|
"github.com/SigNoz/signoz/pkg/cache/memorycache"
|
|
"github.com/SigNoz/signoz/pkg/factory/factorytest"
|
|
)
|
|
|
|
type provider struct{}
|
|
|
|
func New(config cache.Config) (cache.Cache, error) {
|
|
cache, err := memorycache.New(context.TODO(), factorytest.NewSettings(), config)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return cache, nil
|
|
}
|