]> git.lizzy.rs Git - go-anidb.git/commit
anidb: New caching mechanism
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Sun, 14 Jul 2013 23:16:42 +0000 (20:16 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Sun, 14 Jul 2013 23:16:42 +0000 (20:16 -0300)
commite54415863fb1aaa9a12d4a351557667f2d668c30
tree353e7d26f23ea003971dc3c7123cb7b85d60ca49
parent36351396fa6db3dfc295b63fd1f3f267b0d82c30
anidb: New caching mechanism

Refactors the various parts of the code that interacted with the cache
to use the new cache. Moves the intent system to be decoupled from the
cache.

Caches requests made with invalid keys, avoids requerying the API for
InvalidKeyCacheDuration (1 hour).

Untested on !windows, since that uses a separate file locking mechanism.
15 files changed:
animecache.go
cache.go [new file with mode: 0644]
cache_test.go [new file with mode: 0644]
caches.go [deleted file]
cachetemplate.go [deleted file]
episodecache.go
filecache.go
flock.go [new file with mode: 0644]
flock_other.go [new file with mode: 0644]
flock_windows.go [new file with mode: 0644]
groupcache.go
intent.go [new file with mode: 0644]
misc.go
titlecache.go
udp.go