diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-13 18:16:53 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-13 18:16:53 +0100 |
commit | aff9c091669a022b59f493c9dccf72be29511299 (patch) | |
tree | c3e8ca2d3b1dd43c0be3263eb241e5052dfc5ef0 /cache | |
parent | fdd4a768f053b21271d4520bf0d43baf62d516da (diff) |
cache/filecache: Spelling corrections
Diffstat (limited to 'cache')
-rw-r--r-- | cache/filecache/filecache.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cache/filecache/filecache.go b/cache/filecache/filecache.go index 45359f574..e299258d7 100644 --- a/cache/filecache/filecache.go +++ b/cache/filecache/filecache.go @@ -115,7 +115,7 @@ func (l *lockedFile) Close() error { return l.File.Close() } -// GetWriteCloser returns a transactional writer into the cache. +// WriteCloser returns a transactional writer into the cache. // It's important that it's closed when done. func (c *Cache) WriteCloser(id string) (ItemInfo, io.WriteCloser, error) { id = cleanID(id) @@ -260,7 +260,7 @@ func (c *Cache) Get(id string) (ItemInfo, io.ReadCloser, error) { return info, r, nil } -// get gets the file with the given id. If it's expired, it will +// getOrRemove gets the file with the given id. If it's expired, it will // be removed. func (c *Cache) getOrRemove(id string) hugio.ReadSeekCloser { if c.maxAge == 0 { @@ -316,7 +316,7 @@ func (f Caches) Get(name string) *Cache { return f[strings.ToLower(name)] } -// GetJSOnCache gets the file cache for getJSON. +// GetJSONCache gets the file cache for getJSON. func (f Caches) GetJSONCache() *Cache { return f[cacheKeyGetJSON] } |