implement the cache plugin in CLI mode