karlseguin / ccache

A golang LRU Cache for high concurrency
MIT License
1.31k stars 121 forks source link

Control cleanup + Better Stop #63

Closed karlseguin closed 1 year ago

karlseguin commented 3 years ago

Move the control API shared between Cache and LayeredCache into its own struct. But keep the control logic handling separate - it requires access to the local values, like dropped and deleteItem.

Stop is now a control message. Channels are no longer closed as part of the stop process.