Add example code and control Memery cache size.