3 ms·
There exists the 'diskcache' library too, which gives you a persistent dictionary that stores any kind of pickle-able python object. There's also a nice persist
by isoprophlex 4y ago
There exists the 'diskcache' library too, which gives you a persistent dictionary that stores any kind of pickle-able python object. There's also a nice persistent memoization decorator, with optional TTL... I've always found 'diskcache' to be very ergonomic.
- BiteCode_dev 4y agoIf you can pip install something, I would also recommend diskcache: - it backed up by sqlite, so the data is much more secure - you can access it from several processes - it's more portable