public function get($key, $default = null) { if ($this->has($key)) { return shm_get_var($this->shm, $this->shm_key($key)); } else { return $default; } }