src/Dependencies/TagDependency.php
protected static function touchKeys($cache, $keys): array
    {
        $items = [];
        $time = microtime();
        foreach ($keys as $key) {
            $items[$key] = $time;
        }
        $cache->setMultiple($items);
        return $items;
    }
protected static function touchKeys($cache, $keys): array
    {
        $items = [];
        $time = microtime();
        foreach ($keys as $key) {
            $items[$key] = $time;
        }
        $cache->setMultiple($items);
        return $items;
    }
protected static function touchKeys ( $ cache , $ keys ) : array { $ items = [ ] ; $ time = microtime ( ) ; foreach ( $ keys as $ key ) { $ items [ $ key ] = $ time ; } $ cache -> setMultiple ( $ items ) ; return $ items ; }
Generates the timestamp for the specified cache keys.
@param \Psr\SimpleCache\CacheInterface $cache
@param string[] $keys
@return array the timestamp indexed by cache keys
@throws \Psr\SimpleCache\InvalidArgumentException
Generates the timestamp for the specified cache keys .