'If `view.throttle_scope` is not set, don\'t apply this throttle.
Otherwise generate the unique cache key by concatenating the user id
with the \'.throttle_scope` property of the view.'

def get_cache_key(self, request, view):

    if is_authenticated(request.user):
        ident = request.user.pk
    else:
        ident = self.get_ident(request)
    return (self.cache_format % {u'scope': self.scope, u'ident': ident})
