def _get_cache_key(shop):
 return (str(u'%s:%s') % (_SHOP_CONF_NAMESPACE, (shop.pk if shop else 0)))

def _get_cache_key ( shop ) : return ( str ( u'%s:%s' ) % ( _SHOP_CONF_NAMESPACE , ( shop . pk if shop else 0 ) ) )
get global or shop specific cache key .