Skip to content

Instantly share code, notes, and snippets.

@miguelerm
Created October 30, 2019 00:14
Show Gist options
  • Save miguelerm/905ea69a4773c5feaf14f4abe3656b1f to your computer and use it in GitHub Desktop.
Save miguelerm/905ea69a4773c5feaf14f4abe3656b1f to your computer and use it in GitHub Desktop.
Sample of the log generated by WebCachedApplication of https://github.com/miguelerm/curso-ngcs/tree/master/demos/WebCachedApplication

Request 1 (Sin Response Cache ni Memory Cache):

Information: Request starting HTTP/1.1 GET http://localhost:62017/users  
Information: No cached response available for this request.
Debug: Looking up Users on cache
Debug: No cached entry available for Users.
Debug: Getting users from database
Information: The response has been cached.
Information: Request finished in 573.3304ms 200 application/json; charset=utf-8

Request 2 (Con Response Cache):

Information: Request starting HTTP/1.1 GET http://localhost:62017/users  
Information: Serving response from cache.
Information: Request finished in 17.417ms 200 application/json; charset=utf-8

Request 3 (Sin Response Cache pero con Memory Cache):

Information: Request starting HTTP/1.1 GET http://localhost:62017/users  
Information: No cached response available for this request.
Debug: Looking up Users on cache
Information: The response has been cached.
Information: Request finished in 83.54870000000001ms 200 application/json; charset=utf-8

Request 4 (Con Response Cache):

Information: Request starting HTTP/1.1 GET http://localhost:62017/users  
Information: Serving response from cache.
Information: Request finished in 16.421ms 200 application/json; charset=utf-8

Request 5 (Sin Response Cache ni Memory Cache):

Information: Request starting HTTP/1.1 GET http://localhost:62017/users  
Information: No cached response available for this request.
Debug: Looking up Users on cache
Debug: No cached entry available for Users.
Debug: Getting users from database
Information: The response has been cached.
Information: Request finished in 100.6568ms 200 application/json; charset=utf-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment