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/m/a/madcow-HEAD/contrib/django-memebot/gruntle/memebot/decorators.py   madcow(Download)
from django.core.cache import cache
 
from gruntle.memebot.utils import get_logger, text, locking, make_unique_key
from gruntle.memebot.exceptions import *
 
        def wrapper_func(*args, **kwargs):
            key = key_fmt % make_unique_key((args, kwargs))
            val = cache.get(key)
            if val is None:
                val = wrapped_func(*args, **kwargs)