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

All Samples(23)  |  Call(23)  |  Derive(0)  |  Import(0)

src/g/o/gotit-HEAD/addons/backup/zheng.py   gotit(Download)
def cache_url(self):
    '''cache the base_url'''
    cache = Cache()
    url = self.__get_base_url()
    cache.set('url',url,500)
    while True:
        result = cache.get('url')
        if result is None:
            result = self.__get_base_url()
            cache.set('url',result,500)

src/l/i/livestreamer-1.8.0/src/livestreamer/stream/hds.py   livestreamer(Download)
            # Only save in cache if a valid date is given
            if len(modified) < 40:
                cache.set(key, dict(hash=hash, modified=modified))
 
        msg = "st=0~exp=9999999999~acl=*~data={0}!{1}".format(data, hash)

src/l/i/livestreamer-HEAD/src/livestreamer/stream/hds.py   livestreamer(Download)
            # Only save in cache if a valid date is given
            if len(modified) < 40:
                cache.set(key, dict(hash=hash, modified=modified))
 
        msg = "st=0~exp=9999999999~acl=*~data={0}!{1}".format(data, hash)

src/f/l/Flask-OAuthlib-0.4.3/flask_oauthlib/contrib/oauth2.py   Flask-OAuthlib(Download)
        )
        log.debug("Set Grant Token with key %s" % grant.key)
        cache.set(grant.key, dict(grant))
 
    @provider.grantgetter

src/f/l/flask-oauthlib-HEAD/flask_oauthlib/contrib/oauth2.py   flask-oauthlib(Download)
        )
        log.debug("Set Grant Token with key %s" % grant.key)
        cache.set(grant.key, dict(grant))
 
    @provider.grantgetter

src/c/l/cloudi-0.5.7/cloudi/query.py   cloudi(Download)
        if print_out:
            print_result(json_d)
        Cache.set(word, json_str)
 

src/w/i/wikidata-HEAD/wikivoyage/importer.py   wikidata(Download)
    while pywikibot.Page(repo, 'Wikidata:Wikivoyage conflicts/' + str(val)).exists():
        val += 1
    CACHE.set('value', val)
    return val