You don't need to:
- Change the way you query
- Change your schema
MongoDB, and pretty much any other database, has something called indexes. These allow for O(log n) operations on data values which result in much faster queries, not only that but they are designed to be a sort of cache to your data and can reside in memory.
You can simply imply an index on name by:
db.uses.ensureIndex({name:1})
I would recommend you look into this side of databases more:
Those links should get you started. The theory and implementation of indexes is mostly the same across all databases. MongoDB does do some fun stuff with memory but apart from that it is the same.
Edit
I realised I read the question a little wrong. You want to store a list of ALL users names since you need them all at once.
For a large user base I don't think Redis could do this adequately (actually I am 90% sure it can't) and nor could any aggregated document structure in MongoDB and housing that for a large user based in memory would be troublesome to say the least, one for memory requirements of housing the structure.
I recommend you really think of why you need that. You should really plan out your query scenario and think of the requirements, you are going down an odd path here.