public function getCacheOptions($method)
{
if (!array_key_exists($method, $this->cachedMethods)) {
$meta = $this->factory->getMetaInfo($this->factory->getClassName($this->id));
if (isset($meta['cache'][$method]['value'])) {
$val = $meta['cache'][$method]['value'];
list($k, $v) = $val;
Verify::isTrue($k == 'ttl', "no TTL with @cache in {$method}");
$this->cachedMethods[$method][$k] = $v;
}
}
return $this->cachedMethods[$method];
}