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

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

src/d/j/django-cacheops-1.3.1/cacheops/invalidation.py   django-cacheops(Download)
    def load_schemes(self, model):
        model_name = get_model_name(model)
 
        txn = redis_client.pipeline()
        txn.get(self.get_version_key(model))
            if new_schemes - schemes:
                # Write new schemes to redis
                txn = redis_client.pipeline()
                txn.incr(self.get_version_key(model_name)) # Увеличиваем версию схем
 

src/d/j/django-cacheops-1.3.1/cacheops/query.py   django-cacheops(Download)
    cache_schemes.ensure_known(model, schemes)
 
    txn = redis_client.pipeline()
 
    # Write data to cache

src/d/j/django-panacea-0.1.2/panacea/tools.py   django-panacea(Download)
    cache_schemes.ensure_known(model, schemes)
 
    txn = redis_client.pipeline()
 
    # Write data to cache