DEV Community

Discussion on: Dynamic Programming for Pythonistas

Collapse
musale profile image
Musale Martin

Nice article. The LRU cache works in the same way the decorator you created does?

Collapse
makalaaneesh profile image
Aneesh Makala Author

Thanks :)
Well, if you're asking about redis, the cache eviction policy is something comes out of the box with redis. It's something you can configure for your redis server. So the decorator would merely have to deal with saving the key-value pair to redis.