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-settings-1.3-11/django_settings/dataapi.py   django-settings(Download)
    def __call__(self, type_name, name, value, validate=True, timeout=None):
        get_key = self._keymaker.make('get', [name], {})
        exists_key = self._keymaker.make('exists', [name], {})
        value_to_cache = self.origin_method(type_name, name, value, validate=validate)
        cached_value = self._cache_set(get_key, value_to_cache, timeout=timeout)
        self._cache_set(exists_key, True, timeout=timeout)

src/d/j/django-settings-HEAD/django_settings/dataapi.py   django-settings(Download)
    def __call__(self, type_name, name, value, validate=True, timeout=None):
        get_key = self._keymaker.make('get', [name], {})
        exists_key = self._keymaker.make('exists', [name], {})
        value_to_cache = self.origin_method(type_name, name, value, validate=validate)
        cached_value = self._cache_set(get_key, value_to_cache, timeout=timeout)
        self._cache_set(exists_key, True, timeout=timeout)