public function type($key)
    {
        $start = microtime(true);
        $ret = (string)$this->getRedis($key)->type($this->getPatternKey().$key);
        $this->notifyEvent('type', array($this->getPatternKey().$key), microtime(true) - $start);

        return $ret;
    }