UserKey returns the key used to store a user document format: _sync:user:{m_$}:{username}
(username string)
| 287 | // |
| 288 | // format: _sync:user:{m_$}:{username} |
| 289 | func (m *MetadataKeys) UserKey(username string) string { |
| 290 | return m.userPrefix + m.serializeIfLonger(username) |
| 291 | } |
| 292 | |
| 293 | // UserKeyPrefix returns the prefix used to store a user document |
| 294 | // |