]> git.lizzy.rs Git - go-anidb.git/blobdiff - animecache.go
anidb: Simplify documentation
[go-anidb.git] / animecache.go
index 66c1e6a601d8721143fdd349362cf52edee37006..2fd104428079a3418290e5fd77690472b63ef26e 100644 (file)
@@ -53,11 +53,8 @@ type httpAnimeResponse struct {
        err   error
 }
 
-// Retrieves an Anime from the cache if possible. If it isn't cached,
-// or if the cache is stale, queries both the UDP and HTTP APIs
-// for data.
-//
-// Note: This can take at least 4 seconds during heavy traffic.
+// Retrieves an Anime by its AID. Uses both HTTP and UDP APIs,
+// but can work without the UDP API.
 func (adb *AniDB) AnimeByID(aid AID) <-chan *Anime {
        keys := []cacheKey{"aid", aid}
        ch := make(chan *Anime, 1)