added CacheRegion.actual_backend
jvanasco
Branch: jvanasco/dogpile.cache:feature-actual_backend
Branch: zzzeek/dogpile.cache:master
Declined
Declined pull request
Dear contributor - This pull request is being moved to Gerrit, at https://gerrit.sqlalchemy.org/#/c/zzzeek/dogpile.cache/+/796, where it may be tested and reviewed more closely. As such, the pull request itself is being marked "closed" or "declined", however your contribution is merely being moved to our central review system. Please register at https://gerrit.sqlalchemy.org#/register/ to send and receive comments regarding this item.
Closed by: Mike Bayer·2018-06-27
added CacheRegion.actual_backend accessor, along with tests for Proxied and non-Proxied scenarios.
this was implemented as a property with a cached result, to minimize inspections.
it could also be implemented as a function with a
force_compute=None
argument to utilize a cached value.