src/Apcu.php
/**
     * {@inheritdoc}
     *
     * APC does not support natively cache-tags so we simulate them.
     */
APC does not support natively cache-tags so we simulate them.
APC does not support natively cache - tags so we simulate them .
public function save($data, $key, array $tags = null, $ttl = null)
    {
        $key = $this->mapKey($key);
        $store = array($key => $data);
        if ($this->options['tag_enable'] && !empty($tags)) {
            foreach ($tags as $tag) {
                $tag = $this->mapTag($tag);
                $keys = apcu_fetch($tag, $success);
                if (false === $success) {
                    $store[$tag] = array($key);
                } else {
                    $keys[] = $key;
                    $store[$tag] = array_unique($keys);
                }
            }
        }
        return !in_array(false, apcu_store($store, null, $ttl));
    }
public function save ( $ data , $ key , array $ tags = null , $ ttl = null ) { $ key = $ this -> mapKey ( $ key ) ; $ store = array ( $ key => $ data ) ; if ( $ this -> options [ 'tag_enable' ] && ! empty ( $ tags ) ) { foreach ( $ tags as $ tag ) { $ tag = $ this -> mapTag ( $ tag ) ; $ keys = apcu_fetch ( $ tag , $ success ) ; if ( false === $ success ) { $ store [ $ tag ] = array ( $ key ) ; } else { $ keys [ ] = $ key ; $ store [ $ tag ] = array_unique ( $ keys ) ; } } } return ! in_array ( false , apcu_store ( $ store , null , $ ttl ) ) ; }
{@inheritdoc}
 APC does not support natively cache-tags so we simulate them.
{ @inheritdoc } APC does not support natively cache - tags so we simulate them .
// add all the tags to the index key. // TODO: $this->getIndex($key)->add($tags);