You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: blog.rb
    path of file: ./repos/catarse/lib
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Blog
  class << self
    def fetch_last_posts
      Rails.cache.fetch('blog_posts', expires_in: 10.minutes) do
        return []
    
    def fetch_last_posts
      Rails.cache.fetch('blog_posts', expires_in: 10.minutes) do
        return [] unless CatarseSettings[:blog_url].present?
        begin
          response = Typhoeus.get("#{CatarseSettings[:blog_url]}?feed=rss2", followlocation: true, timeout: 1)
          encoded_data = response.body.force_encoding('utf-8')
          feed = Feedjira::Feed.parse encoded_data
          feed.entries
        rescue
          []
        end
      end