Метод |
Описание |
|
__call ( string $name, array $arguments ) : mixed |
Redirects calls to original datasource methods. Needed if the Cacher.Cache
behavior is attached before other behaviors that use the model's datasource methods. |
|
__construct ( array $config = [] ) |
Constructor |
|
clearModelCache ( Model $Model, $query = null ) |
*
Clears the cache for a specific model and rewrites the map. Pass query to
clear a specific query's cached results |
|
describe ( mixed $model ) : mixed |
Since Datasource has the method describe(), it won't be caught __call(). |
|
read ( Model $Model, array $queryData = [], integer $recursive = null ) : array |
Reads from cache if it exists. If not, it falls back to the original
datasource to retrieve the data and cache it for later |
|