src/Cache.php
public static function countAll()
    {
        $count = 0;

        $dir = new \DirectoryIterator(static::config('directory'));

        foreach ($dir as $fileinfo) {
            if ($fileinfo->isFile()) {
                $count++;
            }
        }

        return $count;
    }
public static function countAll()
    {
        $count = 0;

        $dir = new \DirectoryIterator(static::config('directory'));

        foreach ($dir as $fileinfo) {
            if ($fileinfo->isFile()) {
                $count++;
            }
        }

        return $count;
    }
public static function countAll ( ) { $ count = 0 ; $ dir = new \ DirectoryIterator ( static :: config ( 'directory' ) ) ; foreach ( $ dir as $ fileinfo ) { if ( $ fileinfo -> isFile ( ) ) { $ count ++ ; } } return $ count ; }
Returns the total number of unique cached data
@return int
Returns the total number of unique cached data