Invalidate the cache value represented by a statement.
(self, statement, parameters, opt)
| 89 | return None |
| 90 | |
| 91 | def invalidate(self, statement, parameters, opt): |
| 92 | """Invalidate the cache value represented by a statement.""" |
| 93 | |
| 94 | if isinstance(statement, Query): |
| 95 | statement = statement.__clause_element__() |
| 96 | |
| 97 | dogpile_region = self.cache_regions[opt.region] |
| 98 | |
| 99 | cache_key = opt._generate_cache_key(statement, parameters, self) |
| 100 | |
| 101 | dogpile_region.delete(cache_key) |
| 102 | |
| 103 | |
| 104 | class FromCache(UserDefinedOption): |
no test coverage detected