Skip to content

Glossary: Django Beyond the Basics

cache.get_or_set

Also written: get_or_set

Returns the cached value, or calls the function you give it and caches the result. Pass the function without brackets so it runs only when needed.

Where the book teaches it

Related terms

Cache, stale data