func (m *InMemory) RLock() error {
	m.lock.RLock()
	return nil
}
RLock acquires a shared lock on the store.
package backend
import (
	"sort"
	"sync"
	"github.com/cossacklabs/acra/keystore/v2/keystore/filesystem/backend/api"
)
type InMemory struct {
	storage map[string][]byte
	lock    sync.RWMutex
}
func NewInMemory() *InMemory {
	return &InMemory{
		storage: make(map[string][]byte),
	}
}
func (m *InMemory) Lock() error {
	m.lock.Lock()
	return nil
}
func (m *InMemory) Unlock() error {
	m.lock.Unlock()
	return nil
}