func (s *mapDB) Shutdown() {
}
Shutdown marks the store as shutdown.
package mapdb
import (
	"sync"
	"github.com/iotaledger/hive.go/byteutils"
	"github.com/iotaledger/hive.go/kvstore"
	"github.com/iotaledger/hive.go/types"
)
type mapDB struct {
	sync.RWMutex
	m     *syncedKVMap
	realm []byte
}
func NewMapDB() kvstore.KVStore {
	return &mapDB{
		m: &syncedKVMap{m: make(map[string][]byte)},
	}
}
func (s *mapDB) WithRealm(realm kvstore.Realm) kvstore.KVStore {
	return &mapDB{
		m:     s.m,  
		realm: realm,
	}
}
func (s *mapDB) Realm() kvstore.Realm {
	return byteutils.ConcatBytes(s.realm)
}