size_t instead of int here to support >2G
Merge pull request #97 from rlerdorf/master

Use size_t instead of int to support a cache larger than 2G