def cache_set(self, key, expiry, data):
        self.cache.set(key, (expiry, data), self.cache_ttl)

        if getattr(settings, 'CACHEBACK_VERIFY_CACHE_WRITE', True):
            # We verify that the item was cached correctly.  This is to avoid a
            # Memcache problem where some values aren't cached correctly
            # without warning.
            __, cached_data = self.cache.get(key, (None, None))
            if data is not None and cached_data is None:
                raise RuntimeError(
                    "Unable to save data of type %s to cache" % (
                        type(data)))
Tests that passing a non-view callable into ``resolve_url`` raises a
dataset/ETHPy150Open codeinthehole/django-cacheback/cacheback/base.py/Job.cache_set--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/resolve_url/tests.py/ResolveUrlTests.test_non_view_callable_raises_no_reverse_match