> For the complete documentation index, see [llms.txt](https://oguzhaninan.gitbook.io/varnish-cache/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oguzhaninan.gitbook.io/varnish-cache/varnish-yapilandirma-dili-vcl/vcl-sintaks/degerler.md).

# Değerler

VCL'de **string**, **integer** ve **boolean** kullanabilirsiniz. VCL ayrıca zaman (time) ve süreleri (duration) de destekler. Bu değerlerle ne yapabileceğimizi görelim.

### String

```c
sub vcl_recv {
 set req.http.x-test = "test 123";
 set req.http.x-test-uzun = {"test '123', falan "123" filan"};
 set req.http.x-test-uzun-coklu-satir = {"test '123',
        falan "123" filan"};
}
```

### Integer

```c
sub vcl_recv {
  return(synth(200, "OK"));
}
```

### Boolean

{% code title="" %}

```c
sub vcl_backend_response {
  if(beresp.http.set-cookie) {
      set beresp.uncacheable = true;
  }
}
```

{% endcode %}

### Durations

VCL'nin desteklediği bir diğer tür ise sürelerdir. Bunlar, zaman aşımı, yaş, **grace**, **keep** vb. İçin kullanılır. **Integer** bir değerin sonuna bazı son ekler getirilir. Son ek, aşağıdaki değerlerden herhangi biri olabilir:

* **ms:** milisaniye
* **s:** saniye
* **m:** dakika
* **h:** saat
* **d:** gün&#x20;
* **w:** hafta&#x20;
* **y:** yıl

```c
sub vcl_backend_response {
   set beresp.ttl = 1h;
}
```

**Duration** değeri **float** bir değerde olabilir.

```c
sub vcl_backend_response {
   set beresp.ttl = 1.5h;
}
```
