Can set default cache size

Currently, the default cache size is 128, which may be too small. A larger cache size may boost performance. I add functions to set default cache size. Program can call it when needed.