def memcache_set(request):
 keys = []
 for i in request['item']:
  if ('MemcacheSetRequest_Item' in i):
   key = i['MemcacheSetRequest_Item']['key']
  else:
   key = i['Item']['key']
  keys.append(truncate(key))
 return '\n'.join(keys)

def memcache_set ( request ) : keys = [ ] for i in request [ 'item' ] : if ( 'MemcacheSetRequest_Item' in i ) : key = i [ 'MemcacheSetRequest_Item' ] [ 'key' ] else : key = i [ 'Item' ] [ 'key' ] keys . append ( truncate ( key ) ) return '\n' . join ( keys )
pretty-format a memcache .