public function writeCache(Model $model, $keys, $value, $expires = null) {
        $key = $this->cacheKey($model, $keys);

        Cache::set('duration', $this->getExpiration($model, $expires), $this->settings[$model->alias]['cacheConfig']);

        $this->_cached[$key] = $value;

        return Cache::write($key, $value, $this->settings[$model->alias]['cacheConfig']);
    }