Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(2)  |  Import(1)

src/m/o/mozpool-4.1.5/mozpool/lifeguard/handlers.py   mozpool(Download)
import time
import mozpool.lifeguard
from mozpool.web.handlers import deviceredirect, InMemCacheMixin, Handler
 
# URLs go here. "/api/" will be automatically prepended to each.
class device_state(Handler, InMemCacheMixin):
    CACHE_TTL = 5
 
    def update_cache(self):
        return self.db.devices.list_states()

src/m/o/mozpool-4.1.5/mozpool/test/unit/web/test_handlers.py   mozpool(Download)
class CachedHandler(handlers.InMemCacheMixin, handlers.Handler):
 
    updates = []
    CACHE_TTL = 10