working on #19.
fixing #19.
added a Close() function in Cache interface.
fix #19.
fix #19.