| #117 | $uri = mb_substr($uri, 0, self::URI_MAX_LENGTH, 'UTF-8'); |
| #118 | return $uri; |
| #119 | } |
| #120 | |
| #121 | private function setCache($key, $value) { |
| #122 | if (count(self::$cache) >= self::CACHE_MAX_SIZE) { |
| #123 | $this->evictOldestCache(); |
| #124 | } |
| #125 | self::$cache[$key] = array( |
| #126 | 'data' => $value, |