Skip to content

Instantly share code, notes, and snippets.

@e10a
Created April 19, 2024 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save e10a/7a2b8beba3a267dac803ab8e145b9cab to your computer and use it in GitHub Desktop.
Save e10a/7a2b8beba3a267dac803ab8e145b9cab to your computer and use it in GitHub Desktop.
Rails clear cache
Rails.cache.redis.keys.select {|k| k.include? 'Inventory Service'}.each {|k| Rails.cache.delete(k)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment