Get the cache. @return: The I{options} when I{cachingpolicy} = B{1}. @rtype: L{Cache}
(self)
| 157 | return d |
| 158 | |
| 159 | def cache(self): |
| 160 | """ |
| 161 | Get the cache. |
| 162 | @return: The I{options} when I{cachingpolicy} = B{1}. |
| 163 | @rtype: L{Cache} |
| 164 | """ |
| 165 | if self.options.cachingpolicy == 1: |
| 166 | return self.options.cache |
| 167 | else: |
| 168 | return NoCache() |