Bluz\Cache\Cache::set PHP 메소드

set() 공개 메소드

public set ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
리턴 boolean
    public function set($id, $data, $ttl = Cache::TTL_NO_EXPIRY)
    {
        $id = $this->prepareId($id);
        return $this->getAdapter()->set($id, $data, $ttl);
    }