Skip to content

Instantly share code, notes, and snippets.

View zablotski's full-sized avatar

Yauheni Zablotski zablotski

  • Warsaw, Poland
View GitHub Profile
@typehorror
typehorror / Flask-SQLAlchemy Caching.md
Last active February 15, 2024 14:44
Flask SQLAlchemy Caching

Flask-SQLAlchemy Caching

The following gist is an extract of the article Flask-SQLAlchemy Caching. It allows automated simple cache query and invalidation of cache relations through event among other features.

Usage

retrieve one object

# pulling one User object

user = User.query.get(1)