CacheDb::__construct PHP Метод

__construct() публичный Метод

架构函数
public __construct ( array $options = [] )
$options array 缓存参数
    public function __construct($options = array())
    {
        if (empty($options)) {
            $options = array('table' => C('DATA_CACHE_TABLE'));
        }
        $this->options = $options;
        $this->options['prefix'] = isset($options['prefix']) ? $options['prefix'] : C('DATA_CACHE_PREFIX');
        $this->options['length'] = isset($options['length']) ? $options['length'] : 0;
        $this->options['expire'] = isset($options['expire']) ? $options['expire'] : C('DATA_CACHE_TIME');
        import('Db');
        $this->handler = DB::getInstance();
    }