cache icon indicating copy to clipboard operation
cache copied to clipboard

refactor cacheWriter to ensure that cache write is atomic

Open chenyahui opened this issue 3 years ago • 0 comments

This PR refactor cacheWriter that to write cache when handler finish instead of immediately write cache in Write() Function.

There are two benefits:

  1. promote the write performance: once cache write should be better than multiple read and write
  2. CachePage will become thread safe.

chenyahui avatar Jun 11 '21 06:06 chenyahui