can save now.

writes each item from cache to the file.
test cases updated

Signed-off-by: Nicholas Lum <nicholaslum444@hotmail.com>