yii\caching\TagDependency::getTimestamps PHP Method

getTimestamps() protected method

Returns the timestamps for the specified tags.
protected getTimestamps ( Cache $cache, string[] $tags ) : array
$cache Cache
$tags string[]
return array the timestamps indexed by the specified tags.
    protected function getTimestamps($cache, $tags)
    {
        if (empty($tags)) {
            return [];
        }
        $keys = [];
        foreach ($tags as $tag) {
            $keys[] = $cache->buildKey([__CLASS__, $tag]);
        }
        return $cache->multiGet($keys);
    }