protected function setValue($key, $value, $duration) { $this->_cache[$key] = [$value, $duration === 0 ? 0 : microtime(true) + $duration]; return true; }