// Put will put a message into the store, associated with the provided
// key value.
Put will put a message into the store, associated with the provided
key value.
// Put will put a message into the store associated with the provided // key value .
func (store *FileStore) Put(key string, m packets.ControlPacket) {
	store.Lock()
	defer store.Unlock()
	if !store.opened {
		ERROR.Println(STR, "Trying to use file store, but not open")
		return
	}
	full := fullpath(store.directory, key)
	write(store.directory, key, m)
	if !exists(full) {
		ERROR.Println(STR, "file not created:", full)
	}
}
func ( store * FileStore ) Put ( key string , m packets . ControlPacket ) { store . Lock ( ) defer store . Unlock ( ) if ! store . opened { ERROR . Println ( STR , " " ) return } full := fullpath ( store . directory , key ) write ( store . directory , key , m ) if ! exists ( full ) { ERROR . Println ( STR , " " , full ) } }
Put will put a message into the store, associated with the provided
key value.
Put will put a message into the store associated with the provided key value .