Your IP : 18.119.134.196


Current Path : /home/lentoinv/lentoria.com/vendor/ankitpokhrel/tus-php/src/Cache/
Upload File :
Current File : /home/lentoinv/lentoria.com/vendor/ankitpokhrel/tus-php/src/Cache/CacheFactory.php

<?php

namespace TusPhp\Cache;

class CacheFactory
{
    /**
     * Make cache.
     *
     * @param string $type
     *
     * @static
     *
     * @return Cacheable
     */
    public static function make(string $type = 'file'): Cacheable
    {
        switch ($type) {
            case 'redis':
                return new RedisStore();
            case 'apcu':
                return new ApcuStore();
        }
        return new FileStore();
    }
}

?>