public function expired(string $key)
    {
        $path = $this->path($key);

        return $this->files->exists($path)
            ? \Carbon\Carbon::createFromTimestamp(
                substr($this->files->get($path), 0, 10)
            ) : null;
    }
public function expired(string $key)
    {
        $path = $this->path($key);

        return $this->files->exists($path)
            ? \Carbon\Carbon::createFromTimestamp(
                substr($this->files->get($path), 0, 10)
            ) : null;
    }
public function expired ( string $ key ) { $ path = $ this -> path ( $ key ) ; return $ this -> files -> exists ( $ path ) ? \ Carbon \ Carbon :: createFromTimestamp ( substr ( $ this -> files -> get ( $ path ) , 0 , 10 ) ) : null ; }
Get the expiration time from cache file by key.
@param  string $key
@return \Carbon\Carbon|null
Get the expiration time from cache file by key .