equal
deleted
inserted
replaced
151 self._query_cache = TimedCache(2*60) |
151 self._query_cache = TimedCache(2*60) |
152 |
152 |
153 def init(self): |
153 def init(self): |
154 """method called by the repository once ready to handle request""" |
154 """method called by the repository once ready to handle request""" |
155 self.repo.looping_task(self._interval, self.synchronize) |
155 self.repo.looping_task(self._interval, self.synchronize) |
156 self.repo.looping_task(self._query_cache.ttl.seconds/10, self._query_cache.clear_expired) |
156 self.repo.looping_task(self._query_cache.ttl.seconds/10, |
|
157 self._query_cache.clear_expired) |
157 |
158 |
158 def synchronize(self): |
159 def synchronize(self): |
159 """synchronize content known by this repository with content in the |
160 """synchronize content known by this repository with content in the |
160 external repository |
161 external repository |
161 """ |
162 """ |