3 ms·
Then you should lock the cache while the change is being performed?
by gberger 6y ago
Then you should lock the cache while the change is being performed?
- Dylan16807 6y agoI'm not sure why you got downvoted. A lock could easily solve that problem. Specifically, you could use a read-write lock where readers either keep it open for an entire request or check an epoch number each time they take the lock and abort/restart the request if it changes.