# Notes on Mutexs Remember that you can't read and write to a map across different threads. Same with arrays or slices. To avoid clobbering your data you can use a mutex to gaurd operations. In this implemtation of the SessionStore needs a Mutex for reading and writing from the cache. The Session object needs it's own mutex to append new entries to the messages slice, and to safely flush that to the session file on disk.