You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lambda.go
    path of file: ./repos/cloudfox/aws/sdk
    
    the code of the file until where you have to start completion: package sdk

import (
	"context"
	"encoding/gob"
	"fmt"

	"github.com/BishopFox/cloudfox/internal"
	"github.com/aws/aws-sdk-go-v2/service/lambda"
	lambdaTypes "github.com/aws/aws-sdk-go-v2/service/lambda/types"
	"github.com/patrickmn/go-cache"
)

type LambdaClientInterface interface {
	ListFunctions(context.Context, *lambda.ListFunctionsInput, ...func(*lambda.Options)) (*lambda.ListFunctionsOutput, error)
	GetFunction(context.Context, *lambda.GetFunctionInput, ...func(*lambda.Options)) 
    
func CachedLambdaListFunctions(client LambdaClientInterface, accountID string, region string) ([]lambdaTypes.FunctionConfiguration, error) {
	var PaginationControl *string
	var functions []lambdaTypes.FunctionConfiguration
	cacheKey := fmt.Sprintf("%s-lambda-ListFunctions-%s", accountID, region)
	cached, found := internal.Cache.Get(cacheKey)
	if found {
		return cached.([]lambdaTypes.FunctionConfiguration), nil
	}

	for {
		ListFunctions, err := client.ListFunctions(
			context.TODO(),
			&lambda.ListFunctionsInput{
				Marker: PaginationControl,
			},
			func(o *lambda.Options) {
				o.Region = region
			},
		)

		if err != nil {
			return functions, err
		}

		functions = append(functions, ListFunctions.Functions...)

		//pagination
		if ListFunctions.NextMarker == nil {
			break
		}
		PaginationControl = ListFunctions.NextMarker
	}
	internal.Cache.Set(cacheKey, functions, cache.DefaultExpiration)

	return functions, nil
}