In general, I would strongly advocate for using a well-known, well-tested, generalizable open source project like Django-Cache rather than rolling your own implementation any day. What is the benefit (of any) or a local thread cache?