public function attempts($key, $decaySeconds = 1)
    {
        $value = $this->{Services::CACHE}->get($this->name . $key, $decaySeconds);

        return is_null($value) ? 0 : (int)$value;
    }
public function attempts($key, $decaySeconds = 1)
    {
        $value = $this->{Services::CACHE}->get($this->name . $key, $decaySeconds);

        return is_null($value) ? 0 : (int)$value;
    }
public function attempts ( $ key , $ decaySeconds = 1 ) { $ value = $ this -> { Services :: CACHE } -> get ( $ this -> name . $ key , $ decaySeconds ) ; return is_null ( $ value ) ? 0 : ( int ) $ value ; }
Get the number of attempts for the given key.

@param  string $key
@param  int    $decaySeconds

@return mixed
Get the number of attempts for the given key .