func (h *Hash) UnmarshalBinary(data []byte) error {
	if len(data) != HashSize {
		return errors.Errorf("length mismatch %d vs %d", HashSize, len(data))
	}
	copy(h[:], data)
	return nil
}
UnmarshalBinary implements encoding.BinaryUnmarshaler.
package blob
import (
	"bytes"
	"context"
	"crypto/sha256"
	"encoding/gob"
	"encoding/hex"
	"io"
	"math"
	"sort"
	"sync"
	"github.com/bobvawter/cacheroach/api/tenant"
	"github.com/bobvawter/cacheroach/pkg/cache"
	"github.com/bobvawter/cacheroach/pkg/store/config"
	"github.com/bobvawter/cacheroach/pkg/store/util"
	"github.com/jackc/pgx/v4"
	"github.com/jackc/pgx/v4/pgxpool"
	"github.com/pkg/errors"
)
const HashSize = sha256.Size
type Hash [HashSize]byte
func (h Hash) MarshalBinary() ([]byte, error) {
	return h[:], nil
}
func (h *Hash) String() string {
	return hex.EncodeToString(h[:])
}