Now exposed some cache related config on cache object.
Clean some private api methods.