Add a common interface for cache storages using get/set/delete methods.

With this common interface, we can use default dict and cache like Django or Werkezeug interfaces without problems. Previous code fail with interfaces that not implement `cache[key] = 'foo'`.