Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cacher ¶
type Cacher struct {
// contains filtered or unexported fields
}
Cacher is a task responsible for caching responses for corresponding requests. Upon receiving a request it will check its cache to see if it has a cached response. If it does, it will write this immediately as a response, otherwise it will forward the request on to the `Dispatcher`. Once the `Dispatcher` has a response ready, the `Cacher` will store this response in its cache with a key derived from the request, and then pass the response along to be given to the client.
Click to show internal directories.
Click to hide internal directories.