Skip to content

Instantly share code, notes, and snippets.

@dada-amater
Created April 3, 2014 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dada-amater/9962910 to your computer and use it in GitHub Desktop.
Save dada-amater/9962910 to your computer and use it in GitHub Desktop.
Nette Cache for parallel kies
<?php
namespace Nette\Caching;
use Nette;
/**
* Implements the cache for a application.
*
* @author David Dvorak
*/
class MyCache extends Cache
{
protected function generateKey($key){
if ($this->getNamespace() !== '')
return $this->getNamespace().$key;
else
return $key;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment