src/Caches/Drivers/PDODriver.php
public function expiration($key)
    {
        if ($this->exists($name)) {
            $data = Query::from($this->table)
                        ->where('name', '=', $name)
                        ->first();

            if ($data->lifetime >= time()) {
                return $data->lifetime;
            }
        }
    }
public function expiration($key)
    {
        if ($this->exists($name)) {
            $data = Query::from($this->table)
                        ->where('name', '=', $name)
                        ->first();

            if ($data->lifetime >= time()) {
                return $data->lifetime;
            }
        }
    }
public function expiration ( $ key ) { if ( $ this -> exists ( $ name ) ) { $ data = Query :: from ( $ this -> table ) -> where ( 'name' , '=' , $ name ) -> first ( ) ; if ( $ data -> lifetime >= time ( ) ) { return $ data -> lifetime ; } } }
Get Expiration time of a key.

@param string $key

@return int
Get Expiration time of a key .