---
title: "Discussion on \"Dealing with lru_cache While Testing Django Applications\" | Hashnode"
description: "Discussion on \"Dealing with lru_cache While Testing Django Applications\". lru_cache is the simplest method of caching expensive function calls. It's hassle-free and it doesn't need a backend (such as Redis). But there's a gotcha when testing your application. Data could leak from a test case to another since they are cache..."
url: "https://hashnode.com/posts/dealing-with-lrucache-while-testing-django-applications/6039e7f82b6fa36588f8113c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dealing with lru\_cache While Testing Django Applications](https://blog.nozary.com/dealing-with-lrucache-while-testing-django-applications?utm_source=hashnode&utm_medium=feed)

lru\_cache is the simplest method of caching expensive function calls. It's hassle-free and it doesn't need a backend (such as Redis). But there's a gotcha when testing your application. Data could leak from a test case to another since they are cache...

Feb 27, 2021 · 8 min read · blog.nozary.com  
Read the article

-   [#django](https://hashnode.com/tag/django)
-   [#testing](https://hashnode.com/tag/testing)
-   [#caching](https://hashnode.com/tag/caching)

## Written by

[Milad Nozari](https://hashnode.com/@mnvoh)

@mnvoh

  
[View profile](https://hashnode.com/@mnvoh)

Backend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
