Reputation: 21877
I'm using Redis objects hash_key, in order to save a lot of email addresses. The key has set to a specific model.
hash_key :emails, :global => true
If I use the following:
Committee.emails[1] = "[email protected], [email protected]"
How long can my assigned email string become? I'd like to store a lot of addresses in this perhaps tens of thousands. Does this even make sense?
Upvotes: 1
Views: 366
Reputation: 39558
Each value within a redis hash can be up to 512MB, so clearly you should be able to store far more emails than would likely be reasonable.
That said, if you can use a redis set instead, where each email is a separate set entry, you might save yourself a lot of CPU cycles building and parsing this massive string.
Upvotes: 1