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: secretsmanager.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/BishopFox/cloudfox/internal/aws/policy"
	"github.com/aws/aws-sdk-go-v2/aws"
	"github.com/aws/aws-sdk-go-v2/service/secretsmanager"
	secretsmanagerTypes "github.com/aws/aws-sdk-go-v2/service/secretsmanager/types"
	"github.com/patrickmn/go-cache"
)

type SecretsManage
    
func CachedSecretsManagerListSecrets(client SecretsManagerClientInterface, accountID string, region string) ([]secretsmanagerTypes.SecretListEntry, error) {
	var PaginationControl *string
	var secrets []secretsmanagerTypes.SecretListEntry
	cacheKey := fmt.Sprintf("%s-secretsmanager-ListSecrets-%s", accountID, region)
	cached, found := internal.Cache.Get(cacheKey)
	if found {
		return cached.([]secretsmanagerTypes.SecretListEntry), nil
	}
	for {
		ListSecrets, err := client.ListSecrets(
			context.TODO(),
			&secretsmanager.ListSecretsInput{
				NextToken: PaginationControl,
			},
			func(o *secretsmanager.Options) {
				o.Region = region
			},
		)

		if err != nil {
			return secrets, err
		}

		secrets = append(secrets, ListSecrets.SecretList...)

		//pagination
		if ListSecrets.NextToken == nil {
			break
		}
		PaginationControl = ListSecrets.NextToken
	}

	internal.Cache.Set(cacheKey, secrets, cache.DefaultExpiration)
	return secrets, nil
}