Commit Graph

10 Commits

Author SHA1 Message Date
Tamás Gulácsi 6bbefe3f18 Add negative cache
Cache negative results, too, but only with half TTL, as configured.

Plus get rid of "mesg.Id = req.Id" data race (build with -race flag)
at once without locking.

Found another data race: delete must be protected with Lock,
RLock is not enough.
2015-02-13 07:05:12 +01:00
kenshinx 5cc38b6668 #CodeReviewComments# imports standard library in the first group 2015-02-10 17:00:59 +08:00
Murilo Santana 82294d7f01 locks 2013-12-12 10:31:26 -02:00
kenshin 84d878c03d cache add expire strategy 2013-07-25 00:09:07 +08:00
kenshin 01705a5019 remove interface 2013-07-24 22:47:39 +08:00
kenshin f30e0ba257 add redid cache backend in todo list 2013-07-24 22:40:18 +08:00
kenshin 0dfc4bf100 refactor memory cache into map[string]dns.Msg 2013-07-24 19:01:31 +08:00
kenshin 51be27eee9 memory cache with map[string]string 2013-07-24 18:48:43 +08:00
kenshin 57304bf910 Memory cache implemented 2013-07-24 18:29:38 +08:00
kenshin 5349b53416 first commit 2013-07-23 19:10:38 +08:00