middleware/cache: rename categories (#321)
Rename: positive -> success negative -> denial There is a third (unused category) which is error. Start using these new in the caching middleware and later in the logging middleware.
This commit is contained in:
parent
6cf14746ad
commit
b44d82839f
5 changed files with 21 additions and 16 deletions
2
middleware/cache/cache.go
vendored
2
middleware/cache/cache.go
vendored
|
@ -15,7 +15,7 @@ import (
|
|||
)
|
||||
|
||||
// Cache is middleware that looks up responses in a cache and caches replies.
|
||||
// It has a positive and a negative cache.
|
||||
// It has a success and a denial of existence cache.
|
||||
type Cache struct {
|
||||
Next middleware.Handler
|
||||
Zones []string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue