raise and exception InvalidCacheBackendError with string "Could not find config for '%s' in settings.CACHES" as argument, replace '%s' with alias.
raise InvalidCacheBackendError ( "Could not find config for '%s' in settings.CACHES" % alias )