id = $id; } function getId() { return $this->id; } function put($key, $value, $group = 'default') { $this->cache[$group][$key] = $value; } function get($key, $group = 'default') { if(isset($this->cache[$group]) && array_key_exists($key, $this->cache[$group])) { return $this->cache[$group][$key]; } return LIMB_CACHE_NULL_RESULT; } function flushValue($key, $group = 'default') { if(isset($this->cache[$group][$key])) unset($this->cache[$group][$key]); } function flushGroup($group) { if(isset($this->cache[$group])) $this->cache[$group] = array(); } function flushAll() { $this->cache = array(); } } ?>