def memcache_get(request):
 keys = request['key']
 request_short = '\n'.join([truncate(k) for k in keys])
 namespace = ''
 if ('name_space' in request):
  namespace = request['name_space']
  if (len(keys) > 1):
   request_short += '\n'
  else:
   request_short += ' '
  request_short += ('(ns:%s)' % truncate(namespace))
 return request_short

def memcache_get ( request ) : keys = request [ 'key' ] request_short = '\n' . join ( [ truncate ( k ) for k in keys ] ) namespace = '' if ( 'name_space' in request ) : namespace = request [ 'name_space' ] if ( len ( keys ) > 1 ) : request_short += '\n' else : request_short += ' ' request_short += ( '(ns:%s)' % truncate ( namespace ) ) return request_short
pretty-format a memcache .