public function __construct($expiry_in_seconds = 1000) { if (self::$s_cache == null) { self::$s_cache = new myCache("objCache", $expiry_in_seconds); self::$s_memory_cache = new memoryCache(); } $this->m_expiry_in_seconds = $expiry_in_seconds; }