func (s *Store) Get(name string) (config transaction.Config, err error) {
	c, exists := s.data.Load(name)
	if !exists {
		return config, store.ErrTransactionNotFound
	}
	config = c.(transaction.Config)
	return config, nil
}
Get a transaction config from the store
package memory
import (
	"github.com/brunotm/replicant/internal/xz"
	"github.com/brunotm/replicant/store"
	"github.com/brunotm/replicant/transaction"
)
var _ store.Store = (*Store)(nil)
func init() {
	store.Register("memory",
		func(uri string) (s store.Store, err error) {
			return New(uri)
		})
}
type Store struct {
	data *xz.Map
}
func New(_ string) (s *Store, err error) {
	return &Store{xz.NewMap()}, nil
}
func (s *Store) Close() (err error) {
	s.data.Clear()
	s.data = nil
	return nil
}
func (s *Store) Has(name string) (exists bool, err error) {
	_, exists = s.data.Load(name)
	return exists, nil
}