Lazy loading and caching for attributes set in `_loadData(..)` by eliasbenb · Pull Request #1510 · pushingkarmaorg/python-plexapi

added 5 commits

April 4, 2025 01:47
- Cached properties are defined using a `cached_data_property` decorator
- Property caches are automatically invalidated whenever the `_data` atribute is changed
- The implementation uses a metaclass to collect and track all cached properties across class inheritances
These attributes include those that call `findItems` and `listAttrs`
…on to do cache invalidation

@eliasbenb

…ve) before trying again with cleaning

@eliasbenb

… expensive) before trying again with cleaning"

This reverts commit e8348df.

JonnyWong16

@eliasbenb

…operties and don't call the super class' _loadData

eliasbenb

JonnyWong16

@eliasbenb

@eliasbenb

@eliasbenb

@eliasbenb

@eliasbenb

@eliasbenb

@eliasbenb

@eliasbenb

@eliasbenb

@eliasbenb

JonnyWong16

This was referenced

Apr 9, 2025

glensc

@eliasbenb eliasbenb deleted the feat/lazy-loading-and-caching branch

May 29, 2025 03:20