How can I see the contents of the Memcachier cache on Heroku?

574 views Asked by At

I need to inspect the cache, and see what IP's are blocked*, and for how long.

NB: I am on a developer/free plan.

Update:

  • I'm using the rack-throttle gem which stores blocked IP's in the cache.
2

There are 2 answers

2
Simone Carletti On

If you click on the Memcachier add-on name in your Heroku control panel you are redirected to the Memcachier dashboard for the instance. More details are available in the add-on documentation.

The dashboard will provide you some information such as limits, memory consumption and items in the collection.

However, keep in mind that Memcached itself doesn't provide advanced commands to list all keys in the database.

As far as I know, there is no IP blocking feature in Memcachier.

2
fantaxy025025 On

I donot know whether this will help you: https://gist.github.com/bkimble/1365005

I change a little in my apps to get the keys. we should not use it frequently.