Cache extension for Flask