Exemplo n.º 1
0
 /**
  * Registers a value to a list of known cache keys. Primarily used to assign
  * entities in a result set to the queries which resulted them. In this
  * case, the entity is the $key and the query is the $value.
  *
  * @param string $key   The list identifier
  * @param string $value The cache key to put in the list
  */
 public function register($key, $value)
 {
     $this->cache->addToList(sprintf('registered:%s', $key), $value);
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function addToList($list, $value)
 {
     // no memory cache for lists
     return $this->cache->addToList($list, $value);
 }