community/cacheextensions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

community/cacheextensions

Composer 安装命令:

composer require community/cacheextensions

包简介

README 文档

README

This Package is meant to help you cache you application to the maximum potential.

Example:

// fetch your Cache
$cache = $this->cacheManager->getCache('My_Cache');

$entity = new \My\Domain\Model\Entity();
$entity->setName('Foo');
$this->persistenceManager->update($entity);

$identifier = 'MyOutputThatDependsOnThatEntity' . $this->cacheIdentityService->getIdentifierByObject($entity);

if (!$cache->has($identifier)) {
	// Really time-consuming and complex rendering that depends on that entity
	$output = $entity->getName();
	$cache->set($identifier, $output);
}

echo $cache->get($identifier);

For every Entity Insert/Update/Delete a timestamp for that Entity will be stored and can be fetched from the cacheIdentityService to get a Identitfier to cache Data that needs to be unique for the version/state of that entity.

统计信息

  • 总下载量: 87
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2012-12-03