yii\caching\TagDependency::touchKeys PHP Method

touchKeys() protected static method

Generates the timestamp for the specified cache keys.
protected static touchKeys ( Cache $cache, string[] $keys ) : array
$cache Cache
$keys string[]
return array the timestamp indexed by cache keys
    protected static function touchKeys($cache, $keys)
    {
        $items = [];
        $time = microtime();
        foreach ($keys as $key) {
            $items[$key] = $time;
        }
        $cache->multiSet($items);
        return $items;
    }