Merge pull request #286 from rxin/cache

Make _cached memory_only (consistent with pre-0.8.1 release).
(cherry picked from commit bd9adfa2ad9d6aeabf7c822df5b1234e6267af66)

Signed-off-by: Reynold Xin <rxin@apache.org>