O'Reilly logo

Go Web Development Cookbook by Arpit Aggarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works…

Once the command has executed successfully, the web application will run on the default Beego port 8080

On application startup, the key with the name foo with the value as bar will be added to the cache. Next, browsing http://localhost:8080/getFromCache will read a foo key value from the cache, append it to Hello, and display it on the browser, as shown in the following screenshot:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required