Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pre-processing task that uses RedisGears
gb = GB('KeysReader')
gb.filter(filter_language)
gb.flatmap(parse_paragraphs)
gb.map(spellcheck_sentences)
gb.foreach(save_sentences)
gb.count()
gb.register('paragraphs:*',keyTypes=['string','hash'], mode="async_local")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment