2๐
โ
I see a lot of reasons not to do it.
Iโm sure caching solutions offer robust solutions to memory management. This includes running as a daemon. Having cache invalidation, setting lifetimes on the data.
By setting a classvariable, you are forgoing the above things.
Additionally, caching solutions provide a clean documented, api for interfacing with them.
๐คdm03514
Source:stackexchange.com