How would you implement a distributed cache?

Technical