Borrowed some code from groupcache and geecache, with modifications:
- Removed the protobuf message format and replaced with a
Codec
interface for encoding and decoding internal HTTP messages. - Supports key expiration for each cache group by setting
ttl
. - More comments in code, easier to understand.