0

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.
Magne
  • 16,401
  • 10
  • 68
  • 88

2 Answers2

2

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.

Simone Carletti
  • 173,507
  • 49
  • 363
  • 364
  • Thanks. I knew about the dashboard, but I need to inspect the key-value-pairs themselves. Do you know how to do that on HerokU? – Magne Dec 03 '13 at 12:40
  • As I said, the Memcached protocol doesn't provide such feature. Please read the article I linked. – Simone Carletti Dec 03 '13 at 14:45
1

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.

fantaxy025025
  • 809
  • 8
  • 7
  • Awesome! This would solve the problem locally, I presume. I need a version for Heroku though. – Magne Dec 21 '13 at 15:19
  • 1
    This isn't going to work for MemCachier since (a) the binary protocol is required for authentication, and this gist uses the ascii protocol, and (b) MemCachier doesn't support the stats sub commands to list all keys. – comradelion Dec 24 '13 at 19:43