Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cache/filecache: Spelling corrections
  • Loading branch information
bep committed Nov 13, 2018
1 parent fdd4a76 commit aff9c09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cache/filecache/filecache.go
Expand Up @@ -115,7 +115,7 @@ func (l *lockedFile) Close() error {
return l.File.Close() 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. // It's important that it's closed when done.
func (c *Cache) WriteCloser(id string) (ItemInfo, io.WriteCloser, error) { func (c *Cache) WriteCloser(id string) (ItemInfo, io.WriteCloser, error) {
id = cleanID(id) id = cleanID(id)
Expand Down Expand Up @@ -260,7 +260,7 @@ func (c *Cache) Get(id string) (ItemInfo, io.ReadCloser, error) {
return info, r, nil 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. // be removed.
func (c *Cache) getOrRemove(id string) hugio.ReadSeekCloser { func (c *Cache) getOrRemove(id string) hugio.ReadSeekCloser {
if c.maxAge == 0 { if c.maxAge == 0 {
Expand Down Expand Up @@ -316,7 +316,7 @@ func (f Caches) Get(name string) *Cache {
return f[strings.ToLower(name)] return f[strings.ToLower(name)]
} }


// GetJSOnCache gets the file cache for getJSON. // GetJSONCache gets the file cache for getJSON.
func (f Caches) GetJSONCache() *Cache { func (f Caches) GetJSONCache() *Cache {
return f[cacheKeyGetJSON] return f[cacheKeyGetJSON]
} }
Expand Down

0 comments on commit aff9c09

Please sign in to comment.