source/Redis/Connection.php
public function strlen($key) {
        try {
            $result = $this->getRedis()->strlen($key);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function strlen($key) {
        try {
            $result = $this->getRedis()->strlen($key);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }
public function strlen ( $ key ) { try { $ result = $ this -> getRedis ( ) -> strlen ( $ key ) ; if ( $ result !== false ) { return $ result ; } throw new ImpossibleValueException ( ) ; } catch ( RedisException $ ex ) { throw new ConnectException ( ) ; } }
Get string length of a key
@param string $key key
@return int key value length
@throws ConnectException exception on connection to redis instance
Get string length of a key