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

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

src/d/j/django-cacheops-1.3.1/cacheops/invalidation.py   django-cacheops(Download)
        version, cache_keys, _ = redis_client.transaction(_invalidate_conjs)
        if cache_keys:
            redis_client.delete(*cache_keys)
 
        # OK, we invalidated all conjunctions we had in memory, but model schema
    if conjs_keys:
        cache_keys = redis_client.sunion(conjs_keys)
        redis_client.delete(*(list(cache_keys) + conjs_keys))
 
def invalidate_all():

src/d/j/django-cacheops-HEAD/cacheops/invalidation.py   django-cacheops(Download)
    if conjs_keys:
        cache_keys = redis_client.sunion(conjs_keys)
        redis_client.delete(*(list(cache_keys) + conjs_keys))
 
def invalidate_all():

src/d/j/django-cacheops-HEAD/tests/bench.py   django-cacheops(Download)
def invalidate_get():
    redis_client.delete(get_key)
 
def do_get():
    Category.objects.cache().get(pk=1)
def invalidate_count():
    redis_client.delete(count_key)
 
def do_count():
    Category.objects.cache().count()
def invalidate_fetch():
    redis_client.delete(fetch_key)
 
def do_fetch():
    list(Category.objects.cache().all())