Skip to content

Instantly share code, notes, and snippets.

@cassioeskelsen
Created March 14, 2022 03:14
Show Gist options
  • Select an option

  • Save cassioeskelsen/d85bdbaf5f3084320e2e1dd69c4aa865 to your computer and use it in GitHub Desktop.

Select an option

Save cassioeskelsen/d85bdbaf5f3084320e2e1dd69c4aa865 to your computer and use it in GitHub Desktop.
async def main() -> dict:
async with redis.client() as conn:
keys = await conn.keys("votos_*")
for key in keys:
if key != 'votos_bd':
print("Votos de " + key.split("_")[1] + " - " + await conn.get(key))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment