public function put($key, $data)
    {

        $key = $this->getKeyCode($key);
        $data = json_encode($data);
        $this->memcacheObj->set($key, $data);
    }
public function put($key, $data)
    {

        $key = $this->getKeyCode($key);
        $data = json_encode($data);
        $this->memcacheObj->set($key, $data);
    }
public function put ( $ key , $ data ) { $ key = $ this -> getKeyCode ( $ key ) ; $ data = json_encode ( $ data ) ; $ this -> memcacheObj -> set ( $ key , $ data ) ; }
Put data into cache

@parm mixed $key
@parm mixed $data
@note If you put a object into cache,
the json_encode function will ignore any private property.
Put data into cache