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

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

src/d/j/django-cache-utils2-0.1/cache_utils2/decorators.py   django-cache-utils2(Download)
# -*- coding: utf-8 -*-
import inspect
import functools
from django.core.cache import get_cache, DEFAULT_CACHE_ALIAS
from cache_utils2.utils import get_func_name, serialize_params
def _get_key(name, params, vary):
    param_str = serialize_params(params, vary)
    return '[CU2]%s(%s)' % (name, param_str,)