WIP: CacheResolver

This is WIP, **do not merge**.

see #183