I'm trying to use the cache class, but i'm with a can't understand the dependencies array.
The documentation doesn't have an example about how to use it.
Can you help me?
The dependencies array is an array of other cache identifiers. The idea behind it is that you can have cached items expire based on the dependencies.
In other words, if you do a Cache::get() of a cache identifier, and one of the dependencies has been updated since this identifier was created, it will be considered to be expired.
It will allow you to auto expire "child" data when the "parent" data has been refreshed.