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

add() 공개 메소드

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