Use dogpile.cache instead of Flask-Shelve.