Don't construct caches with sizes that will crash the db.
Don't construct caches with sizes that will crash the db.

When people pass nonsensical cache values we now replace them with more
sensical ones.

This has the problem that the cache size in the semilattice might not
actually be correct.

Partially fixez #1106.

jesseditson/rethinkdb,ajose01/rethinkdb,bchavez/rethinkdb,elkingtonmcb/rethinkdb,AntouanK/rethinkdb,marshall007/rethinkdb,wojons/rethinkdb,elkingtonmcb/rethinkdb,marshall007/rethinkdb,wujf/rethinkdb,gdi2290/rethinkdb,AntouanK/rethinkdb,Qinusty/rethinkdb,alash3al/rethinkdb,gavioto/rethinkdb,rrampage/rethinkdb,marshall007/rethinkdb,wujf/rethinkdb,AtnNn/rethinkdb,urandu/rethinkdb,AtnNn/rethinkdb,alash3al/rethinkdb,RubenKelevra/rethinkdb,victorbriz/rethinkdb,captainpete/rethinkdb,spblightadv/rethinkdb,wojons/rethinkdb,jesseditson/rethinkdb,robertjpayne/rethinkdb,eliangidoni/rethinkdb,eliangidoni/rethinkdb,jmptrader/rethinkdb,dparnell/rethinkdb,captainpete/rethinkdb,yakovenkodenis/rethinkdb,spblightadv/rethinkdb,rrampage/rethinkdb,mbroadst/rethinkdb,bchavez/rethinkdb,Wilbeibi/rethinkdb,Qinusty/rethinkdb,alash3al/rethinkdb,sebadiaz/rethinkdb,nviennot/rethinkdb,sbusso/rethinkdb,mcanthony/rethinkdb,gdi2290/rethinkdb,gavioto/rethinkdb,Wilbeibi/rethinkdb,yaolinz/rethinkdb,dparnell/rethinkdb,pap/rethinkdb,4talesa/rethinkdb,4talesa/rethinkdb,jmptrader/rethinkdb,mbroadst/rethinkdb,gdi2290/rethinkdb,matthaywardwebdesign/rethinkdb,gavioto/rethinkdb,yakovenkodenis/rethinkdb,dparnell/rethinkdb,tempbottle/rethinkdb,captainpete/rethinkdb,niieani/rethinkdb,grandquista/rethinkdb,elkingtonmcb/rethinkdb,scripni/rethinkdb,mcanthony/rethinkdb,AntouanK/rethinkdb,AtnNn/rethinkdb,urandu/rethinkdb,catroot/rethinkdb,scripni/rethinkdb,greyhwndz/rethinkdb,losywee/rethinkdb,greyhwndz/rethinkdb,eliangidoni/rethinkdb,grandquista/rethinkdb,AtnNn/rethinkdb,alash3al/rethinkdb,mquandalle/rethinkdb,catroot/rethinkdb,Wilbeibi/rethinkdb,yakovenkodenis/rethinkdb,scripni/rethinkdb,tempbottle/rethinkdb,niieani/rethinkdb,urandu/rethinkdb,ayumilong/rethinkdb,grandquista/rethinkdb,mbroadst/rethinkdb,robertjpayne/rethinkdb,wojons/rethinkdb,victorbriz/rethinkdb,sontek/rethinkdb,ajose01/rethinkdb,gavioto/rethinkdb,catroot/rethinkdb,ajose01/rethinkdb,nviennot/rethinkdb,nviennot/rethinkdb,JackieXie168/rethinkdb,greyhwndz/rethinkdb,gavioto/rethinkdb,sontek/rethinkdb,wkennington/rethinkdb,eliangidoni/rethinkdb,mquandalle/rethinkdb,wkennington/rethinkdb,pap/rethinkdb,4talesa/rethinkdb,jfriedly/rethinkdb,yaolinz/rethinkdb,jfriedly/rethinkdb,AntouanK/rethinkdb,tempbottle/rethinkdb,losywee/rethinkdb,spblightadv/rethinkdb,sbusso/rethinkdb,bpradipt/rethinkdb,yakovenkodenis/rethinkdb,mquandalle/rethinkdb,urandu/rethinkdb,Wilbeibi/rethinkdb,captainpete/rethinkdb,sebadiaz/rethinkdb,scripni/rethinkdb,RubenKelevra/rethinkdb,mcanthony/rethinkdb,catroot/rethinkdb,grandquista/rethinkdb,pap/rethinkdb,sontek/rethinkdb,dparnell/rethinkdb,KSanthanam/rethinkdb,RubenKelevra/rethinkdb,jmptrader/rethinkdb,bchavez/rethinkdb,wujf/rethinkdb,jesseditson/rethinkdb,dparnell/rethinkdb,nviennot/rethinkdb,robertjpayne/rethinkdb,mcanthony/rethinkdb,jfriedly/rethinkdb,mcanthony/rethinkdb,bpradipt/rethinkdb,mcanthony/rethinkdb,spblightadv/rethinkdb,jesseditson/rethinkdb,RubenKelevra/rethinkdb,elkingtonmcb/rethinkdb,victorbriz/rethinkdb,mcanthony/rethinkdb,spblightadv/rethinkdb,mquandalle/rethinkdb,wojons/rethinkdb,scripni/rethinkdb,wkennington/rethinkdb,sebadiaz/rethinkdb,greyhwndz/rethinkdb,dparnell/rethinkdb,wkennington/rethinkdb,robertjpayne/rethinkdb,marshall007/rethinkdb,jesseditson/rethinkdb,jfriedly/rethinkdb,alash3al/rethinkdb,niieani/rethinkdb,mquandalle/rethinkdb,matthaywardwebdesign/rethinkdb,Wilbeibi/rethinkdb,dparnell/rethinkdb,losywee/rethinkdb,KSanthanam/rethinkdb,tempbottle/rethinkdb,mquandalle/rethinkdb,wojons/rethinkdb,robertjpayne/rethinkdb,mcanthony/rethinkdb,captainpete/rethinkdb,ayumilong/rethinkdb,matthaywardwebdesign/rethinkdb,urandu/rethinkdb,spblightadv/rethinkdb,niieani/rethinkdb,RubenKelevra/rethinkdb,mquandalle/rethinkdb,wojons/rethinkdb,nviennot/rethinkdb,sbusso/rethinkdb,rrampage/rethinkdb,rrampage/rethinkdb,lenstr/rethinkdb,losywee/rethinkdb,captainpete/rethinkdb,jmptrader/rethinkdb,greyhwndz/rethinkdb,urandu/rethinkdb,captainpete/rethinkdb,JackieXie168/rethinkdb,AntouanK/rethinkdb,eliangidoni/rethinkdb,gdi2290/rethinkdb,sontek/rethinkdb,greyhwndz/rethinkdb,Wilbeibi/rethinkdb,sbusso/rethinkdb,matthaywardwebdesign/rethinkdb,tempbottle/rethinkdb,RubenKelevra/rethinkdb,grandquista/rethinkdb,yakovenkodenis/rethinkdb,4talesa/rethinkdb,gavioto/rethinkdb,Qinusty/rethinkdb,jesseditson/rethinkdb,bchavez/rethinkdb,mbroadst/rethinkdb,KSanthanam/rethinkdb,yaolinz/rethinkdb,rrampage/rethinkdb,AntouanK/rethinkdb,lenstr/rethinkdb,rrampage/rethinkdb,robertjpayne/rethinkdb,jesseditson/rethinkdb,victorbriz/rethinkdb,niieani/rethinkdb,wkennington/rethinkdb,victorbriz/rethinkdb,sbusso/rethinkdb,4talesa/rethinkdb,catroot/rethinkdb,jfriedly/rethinkdb,Wilbeibi/rethinkdb,bchavez/rethinkdb,pap/rethinkdb,pap/rethinkdb,JackieXie168/rethinkdb,sbusso/rethinkdb,bchavez/rethinkdb,wujf/rethinkdb,wojons/rethinkdb,niieani/rethinkdb,urandu/rethinkdb,Wilbeibi/rethinkdb,gdi2290/rethinkdb,lenstr/rethinkdb,wujf/rethinkdb,mbroadst/rethinkdb,losywee/rethinkdb,bpradipt/rethinkdb,eliangidoni/rethinkdb,JackieXie168/rethinkdb,yaolinz/rethinkdb,bpradipt/rethinkdb,nviennot/rethinkdb,ajose01/rethinkdb,lenstr/rethinkdb,sbusso/rethinkdb,elkingtonmcb/rethinkdb,Qinusty/rethinkdb,Qinusty/rethinkdb,yakovenkodenis/rethinkdb,marshall007/rethinkdb,ayumilong/rethinkdb,jmptrader/rethinkdb,gdi2290/rethinkdb,tempbottle/rethinkdb,catroot/rethinkdb,grandquista/rethinkdb,AtnNn/rethinkdb,Qinusty/rethinkdb,lenstr/rethinkdb,KSanthanam/rethinkdb,yaolinz/rethinkdb,RubenKelevra/rethinkdb,victorbriz/rethinkdb,yaolinz/rethinkdb,mbroadst/rethinkdb,jmptrader/rethinkdb,yakovenkodenis/rethinkdb,bchavez/rethinkdb,lenstr/rethinkdb,rrampage/rethinkdb,catroot/rethinkdb,bchavez/rethinkdb,elkingtonmcb/rethinkdb,KSanthanam/rethinkdb,matthaywardwebdesign/rethinkdb,ajose01/rethinkdb,nviennot/rethinkdb,JackieXie168/rethinkdb,ayumilong/rethinkdb,marshall007/rethinkdb,greyhwndz/rethinkdb,dparnell/rethinkdb,bpradipt/rethinkdb,sebadiaz/rethinkdb,matthaywardwebdesign/rethinkdb,JackieXie168/rethinkdb,robertjpayne/rethinkdb,jesseditson/rethinkdb,KSanthanam/rethinkdb,AtnNn/rethinkdb,JackieXie168/rethinkdb,AtnNn/rethinkdb,lenstr/rethinkdb,jfriedly/rethinkdb,AntouanK/rethinkdb,niieani/rethinkdb,sebadiaz/rethinkdb,mbroadst/rethinkdb,rrampage/rethinkdb,eliangidoni/rethinkdb,robertjpayne/rethinkdb,marshall007/rethinkdb,ayumilong/rethinkdb,pap/rethinkdb,wojons/rethinkdb,gavioto/rethinkdb,sbusso/rethinkdb,wkennington/rethinkdb,grandquista/rethinkdb,Qinusty/rethinkdb,urandu/rethinkdb,nviennot/rethinkdb,losywee/rethinkdb,JackieXie168/rethinkdb,sontek/rethinkdb,bpradipt/rethinkdb,sebadiaz/rethinkdb,jmptrader/rethinkdb,robertjpayne/rethinkdb,elkingtonmcb/rethinkdb,tempbottle/rethinkdb,spblightadv/rethinkdb,dparnell/rethinkdb,wkennington/rethinkdb,wujf/rethinkdb,gdi2290/rethinkdb,greyhwndz/rethinkdb,ajose01/rethinkdb,alash3al/rethinkdb,yaolinz/rethinkdb,sebadiaz/rethinkdb,lenstr/rethinkdb,victorbriz/rethinkdb,grandquista/rethinkdb,ayumilong/rethinkdb,ajose01/rethinkdb,sontek/rethinkdb,grandquista/rethinkdb,KSanthanam/rethinkdb,gavioto/rethinkdb,mbroadst/rethinkdb,Qinusty/rethinkdb,captainpete/rethinkdb,sebadiaz/rethinkdb,jfriedly/rethinkdb,sontek/rethinkdb,spblightadv/rethinkdb,bpradipt/rethinkdb,catroot/rethinkdb,4talesa/rethinkdb,scripni/rethinkdb,matthaywardwebdesign/rethinkdb,ayumilong/rethinkdb,AtnNn/rethinkdb,elkingtonmcb/rethinkdb,wkennington/rethinkdb,AntouanK/rethinkdb,scripni/rethinkdb,matthaywardwebdesign/rethinkdb,sontek/rethinkdb,mbroadst/rethinkdb,4talesa/rethinkdb,yaolinz/rethinkdb,eliangidoni/rethinkdb,JackieXie168/rethinkdb,pap/rethinkdb,eliangidoni/rethinkdb,niieani/rethinkdb,mquandalle/rethinkdb,ajose01/rethinkdb,victorbriz/rethinkdb,marshall007/rethinkdb,pap/rethinkdb,wujf/rethinkdb,bpradipt/rethinkdb,bpradipt/rethinkdb,scripni/rethinkdb,Qinusty/rethinkdb,tempbottle/rethinkdb,yakovenkodenis/rethinkdb,jfriedly/rethinkdb,ayumilong/rethinkdb,losywee/rethinkdb,RubenKelevra/rethinkdb,bchavez/rethinkdb,KSanthanam/rethinkdb,jmptrader/rethinkdb,4talesa/rethinkdb,alash3al/rethinkdb,losywee/rethinkdb,alash3al/rethinkdb