mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 17:32:18 +08:00
Cache: Refactor cache clients to use byte array (#62930)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
@ -612,7 +612,8 @@ func TestMiddlewareContext(t *testing.T) {
|
||||
h, err := authproxy.HashCacheKey(hdrName + "-" + group)
|
||||
require.NoError(t, err)
|
||||
key := fmt.Sprintf(authproxy.CachePrefix, h)
|
||||
err = sc.remoteCacheService.Set(context.Background(), key, userID, 0)
|
||||
userIdBytes := []byte(strconv.FormatInt(userID, 10))
|
||||
err = sc.remoteCacheService.SetByteArray(context.Background(), key, userIdBytes, 0)
|
||||
require.NoError(t, err)
|
||||
sc.fakeReq("GET", "/")
|
||||
|
||||
|
Reference in New Issue
Block a user