I'm working on a specific problem where I'd like to keep a unique set as the value and was wonder if there is a better way of doing this.
Here is the scenario: I want to store all accounts that try to login from one IP. So I want to keep a unique set of accounts in a key for that IP. I currently use Python to store a dictionary in the value for that IP and I have to pickle/unpickle everytime to see if I need to insert the account into to dictionary. This is terribly slow when there are a ton of them. Are there any sneaky ways of keeping a unique set of values in a key that scales better than my approach? Thanks.
