addValue is a protected method, you can not call it from outside. You should use set() instead. See CCache.
You should not make your code dependend on a specific type of cache (in fact, that’s even hard to achieve as all cache components share the same interface)
If your extension requires a cache component, you should note that in the documentation so that a developer can configure a cache component