缓存 VS 缓冲
写出 VS 写入
The terms "buffer" and "cache" tend to be used interchangeably; note however they represent different things.
A buffer is used traditionally as an intermediate temporary store for data between a fast and a slow entity. As one party would have to wait for the other affecting performance, the buffer alleviates this by allowing entire blocks of data to move at once rather then in small chunks. The data is written and read only once from the buffer. Furthermore, the buffers are visible to at least one party which is aware of it.
缓冲:可整块移动缓冲区数据,缓冲区数据只能读写一次,读写的某一方能感知到缓冲区的存在
A cache on the other hand by definition is hidden and neither party is aware that caching occurs.It as well improves performance but does that by allowing the same data to be read multiple times in a fast fashion.
缓存:缓存区对双方是不可感知的,可以多次读写
A further explanation of the differences between two can be found here.
出处:spring-cache