Skip to content

Commit

Permalink
chore: Update main.go (#285)
Browse files Browse the repository at this point in the history
* Update main.go

Added comment before main section so people know why the cacheClient object is used.

Co-authored-by: pgautier404 <pgautier404@users.noreply.github.com>
  • Loading branch information
NoSQLKnowHow and pgautier404 authored Apr 10, 2023
1 parent 4ed28eb commit 9f153b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/pubsub-example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const (
topicName = "test-topic"
)

// You wouldn't need the cacheClient object, setupCache function, or associated code if you were connecting to an existing cache in Momento Serverless Cache.
// For demonstration purposes, this example creates a cache for the new Topic to show the publish and subscribe functionality.
func main() {
// Initialization
topicClient := getTopicClient()
Expand Down

0 comments on commit 9f153b9

Please sign in to comment.