Python Bytes cover image

#296 pip: Constrain your excitement

Python Bytes

00:00

Adding a L R U Cash to a Sink Function in Python

Python has some nice stuff built into python, like a sink and the l oru cash. But from what i understand, thou are synchronous only basically their decorators. And so if you have an a sink function, but you want to do the l r u cash, where you just put the decorator lRU CASH it gets called with the same arguments as before. So that's pretty cs, the a, the last used version. And then you also have time to live, a time to live an asink. T t l, so you can say, any results, i don't care how many i've used, but just within the last 60 seconds.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app