Remotecache: rename setbytearray/getbytearray to set/get and remove codec (#64470)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ func TestMiddlewareContext(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
key := fmt.Sprintf(CachePrefix, h)
|
||||
userIdPayload := []byte(strconv.FormatInt(id, 10))
|
||||
err = cache.SetByteArray(context.Background(), key, userIdPayload, 0)
|
||||
err = cache.Set(context.Background(), key, userIdPayload, 0)
|
||||
require.NoError(t, err)
|
||||
// Set up the middleware
|
||||
auth, reqCtx := prepareMiddleware(t, cache, nil)
|
||||
@@ -84,7 +84,7 @@ func TestMiddlewareContext(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
key := fmt.Sprintf(CachePrefix, h)
|
||||
userIdPayload := []byte(strconv.FormatInt(id, 10))
|
||||
err = cache.SetByteArray(context.Background(), key, userIdPayload, 0)
|
||||
err = cache.Set(context.Background(), key, userIdPayload, 0)
|
||||
require.NoError(t, err)
|
||||
|
||||
auth, reqCtx := prepareMiddleware(t, cache, func(req *http.Request, cfg *setting.Cfg) {
|
||||
|
||||
Reference in New Issue
Block a user