Does anyone know what the maximum value size you can store in redis? I want to use redis as a message queue with celery to store some small documents that need to be processed by a worker on another server, and I want to make sure the documents aren't going to be too big.
I found one page with a reference to 1GB, but when I followed the link on the page for where they got that answer the link wasn't valid anymore. Here is the link:
http://news.ycombinator.com/item?id=1182005
Thanks, Ken
It's my understanding that key sizes are limited to 2 GiB. That means that the maximum amount of data you can store at a given key is 2 GiB. All String values are limited to 512 MiB.
http://redis.io/topics/data-types
http://groups.google.com/group/redis-db/browse_thread/thread/1c7e33fbc98734b3?fwc=2
It's in the order of the amount of RAM you have, at least, so unless you plan on puting multi-gigabyte objects in there I wouldn't worry. I've had sets that were hundreds of megabytes big without a problem, but I don't know the exact limits.
Article about Redis Memory Usage can help you to roughly determine how much memory your database would take.
来源:https://stackoverflow.com/questions/5606106/what-is-the-maximum-value-size-you-can-store-in-redis