]> git.lizzy.rs Git - go-anidb.git/blobdiff - titlecache.go
anidb: Update documentation
[go-anidb.git] / titlecache.go
index 1100df085bc1eed4c4fa23863821e7529ce8dc7a..64b10061f50933e00a56df5593bdac05c82a8a10 100644 (file)
@@ -9,7 +9,7 @@ import (
 
 var titlesDB = &titles.TitlesDatabase{}
 
-// Reloads titles from the cache.
+// Loads the database from anime-titles.dat.gz in the cache dir.
 func RefreshTitles() error {
        flock := lockFile(cachePath("anime-titles.dat.gz"))
        flock.Lock()
@@ -32,7 +32,7 @@ func TitlesUpToDate() (ok bool) {
 
 // Downloads a new anime-titles database if the database is outdated.
 //
-// Caches the contents on memory, which gets saved by DumpCaches.
+// Saves the database as anime-titles.dat.gz in the cache dir.
 func UpdateTitles() error {
        // too new, no need to update
        if TitlesUpToDate() {