MCPcopy Create free account
hub / github.com/clintonwoo/hackernews-react-graphql / getUser

Method getUser

server/database/cache.ts:55–57  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

53 /* BEGIN USERS */
54
55 getUser(id: string): UserModel | undefined {
56 return this.userCache.get(id);
57 }
58
59 getUsers(): Array<LRU.Entry<string, UserModel>> {
60 return this.userCache.dump();

Callers 4

meFunction · 0.45
userFunction · 0.45
authorFunction · 0.45
server.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected