TIL: Check cache exists and value in rails console
        Published on November 20, 2024
      
  # Check if cache exists
Rails.cache.exist?('latest_posts')
# Read the current cached value
Rails.cache.read('latest_posts')
# Delete the cache if needed
Rails.cache.delete('latest_posts')