From: Diogo Franco (Kovensky) Date: Fri, 26 Jul 2013 23:31:50 +0000 (-0300) Subject: anidb: Also cache the EID-AID relationship when caching FILE results X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=b340c59c44005e115f94408c72bae6f34d2f31a1;p=go-anidb.git anidb: Also cache the EID-AID relationship when caching FILE results --- diff --git a/filecache.go b/filecache.go index cb8d528..ae529e3 100644 --- a/filecache.go +++ b/filecache.go @@ -30,6 +30,7 @@ func (f *File) IsStale() bool { } func cacheFile(f *File) { + CacheSet(f.AID, "aid", "by-eid", f.EID) CacheSet(f.FID, "fid", "by-ed2k", f.Ed2kHash, f.Filesize) CacheSet(f, "fid", f.FID) }