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

Method setComment

server/database/cache.ts:79–85  ·  view source on GitHub ↗
(id: number, comment: CommentModel)

Source from the content-addressed store, hash-verified

77 }
78
79 setComment(id: number, comment: CommentModel): CommentModel {
80 this.commentCache.set(comment.id.toString(), comment);
81
82 logger('Cache set comment:', comment);
83
84 return comment;
85 }
86
87 /* END COMMENTS */
88

Callers 1

fetchCommentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected