Previously there was a single mutex in MapStore and FileStore that locked access to the contents. This didn't work for copies, as multiple locks were needed at the same time.
This also changes the Store API to return a WriteCloser for Write and a ReadCloser for Read. This is more go-like and easier to work with.
Previously there was a single mutex in
MapStore
andFileStore
that locked access to the contents. This didn't work for copies, as multiple locks were needed at the same time.This also changes the Store API to return a
WriteCloser
forWrite
and aReadCloser
forRead
. This is more go-like and easier to work with.