capgemini/drupal_doctrine_cache
Composer 安装命令:
composer require capgemini/drupal_doctrine_cache
包简介
A mechanism for doctrine to cache using Drupal's caching API.
README 文档
README
This repository provides a Doctrine cache that will use the Drupal 6/7 caching API for storage.
It's fairly straightforward to use, just configure your EntityManager with a new instance of the cache.
$cache = new \Capgemini\Cache\DrupalDoctrineCache();
$entityManagerConfiguration->setMetaDataCacheImpl($cache);
$entityManagerConfiguration->setQueryCacheImpl($cache);
$entityManagerConfiguration->setResultCacheImpl($cache);
By default the cache will use the 'cache' table. You can change this :-
$cache->setCacheTable('my_cache_table');
Obviously you need to ensure that the table exists and is usable by the Drupal caching API.
统计信息
- 总下载量: 3.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2014-06-06