Skip to content
#

decorators

Here are 789 public repositories matching this topic...

tsed
kitmonisit
kitmonisit commented Feb 25, 2021

Hi, I'd like to propose an enhancement similar to verbose_cache.

I will call the new keyword argument notify_fresh. The wrapped function will return a tuple where the second value indicates if the value was fresh from cache.

This will enable logic outside the scope of the cached function to make decisions based on whether the data came from the cache.

For example, let's pretend we ha

Improve this page

Add a description, image, and links to the decorators topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the decorators topic, visit your repo's landing page and select "manage topics."

Learn more