func GetInstance() api.ConfigService {
	return instance
}
GetInstance gets instance of cache for snaps
package service
import (
	"bytes"
	"fmt"
	"github.com/spf13/viper"
	"sync"
	"time"
	"math/rand"
	"encoding/json"
	"crypto/sha256"
	"encoding/base64"
	"github.com/hyperledger/fabric-sdk-go/pkg/common/logging"
	"github.com/hyperledger/fabric/core/chaincode/shim"
	"github.com/hyperledger/fabric/core/peer"
	"github.com/securekey/fabric-snaps/configmanager/api"
	"github.com/securekey/fabric-snaps/configmanager/pkg/mgmt"
	cfgsnapapi "github.com/securekey/fabric-snaps/configurationsnap/api"
	"github.com/securekey/fabric-snaps/util/errors"
)
var logger = logging.NewLogger("configsnap")
type cache map[string][]byte
type ConfigServiceImpl struct {
	mtx          sync.RWMutex
	cacheMap     map[string]cache
	configHashes map[string]string
}
var instance = newConfigService()