Remotecache: Migrates get/set calls to use bytearrays and remove get/set functions (#63525)

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist
2023-03-08 17:08:57 +01:00
committed by GitHub
parent a5133d61b5
commit 7c55dbf37d
5 changed files with 34 additions and 54 deletions
+3 -3
View File
@@ -178,13 +178,13 @@ var _ proxyCache = new(fakeCache)
type fakeCache struct {
expectedErr error
expectedItem interface{}
expectedItem []byte
}
func (f fakeCache) Get(ctx context.Context, key string) (interface{}, error) {
func (f fakeCache) GetByteArray(ctx context.Context, key string) ([]byte, error) {
return f.expectedItem, f.expectedErr
}
func (f fakeCache) Set(ctx context.Context, key string, value interface{}, expire time.Duration) error {
func (f fakeCache) SetByteArray(ctx context.Context, key string, value []byte, expire time.Duration) error {
return f.expectedErr
}