public function __construct(Cache $cache) { $this->cache = $cache; $this->invalidationEntry = Cache::createCache(Shindig_Config::get('data_cache'), 'InvalidationEntry'); if (self::$makerCache == null) { self::$makerCache = Cache::createCache(Shindig_Config::get('data_cache'), 'MarkerCache'); $value = self::$makerCache->expiredGet('marker'); if ($value['found']) { self::$marker = $value['data']; } else { self::$marker = 0; self::$makerCache->set('marker', self::$marker); } } }