protected function addToIndex($key, $expires = null) { // TODO: indexing via somekind of set: http://dustin.github.io/2011/02/17/memcached-set.html return parent::addToIndex($key, $expires); }
protected function addToIndex($key, $expires = null) { if ($this->indexing) { $this->store->sAdd("{$this->prefix}::index", $key); } return parent::addToIndex($key, $expires); }