Cache: Refactor cache clients to use byte array (#62930)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2023-02-08 10:30:20 +01:00
committed by GitHub
parent 2804acd264
commit b88206d98f
7 changed files with 56 additions and 32 deletions
+4 -4
View File
@@ -2,6 +2,7 @@ package rendering
import (
"context"
"encoding/gob"
"errors"
"fmt"
"math"
@@ -22,10 +23,6 @@ import (
"github.com/grafana/grafana/pkg/util"
)
func init() {
remotecache.Register(&RenderUser{})
}
var _ Service = (*RenderingService)(nil)
const ServiceName = "RenderingService"
@@ -113,6 +110,9 @@ func ProvideService(cfg *setting.Cfg, remoteCache *remotecache.RemoteCache, rm p
domain: domain,
sanitizeURL: sanitizeURL,
}
gob.Register(&RenderUser{})
return s, nil
}