With Redis (I'm using Python redis) you can scan keys like this:
keys = redis_client.scan_iter(match='{string}*')
However how would I do this if I want to get all keys excluding a certain string? So in this example I would like all keys not starting with '{string}'.