25 public static function load() : ?self
29 self::$current =
new static();
31 if ($cache->read(self::FACEBOOK_INSTALLS_TTL,self::FACEBOOK_INSTALLS_CACHE_ID))
33 self::$current->value = $cache->get(self::FACEBOOK_INSTALLS_CACHE_ID);
38 && ($response = $adapter->getExtension()->getInstalls())
39 && $response->isSuccess()
42 $cache->set(self::FACEBOOK_INSTALLS_CACHE_ID, self::$current->value = $response->fetch());
46 return self::$current;