# memory

Set memory resource limits for the pod.

```rhai
pod.memory(requested, limit) -> Pod
```

## Parameters

- `requested` (int): Requested memory in megabytes
- `limit` (int): Memory limit in megabytes

## Returns

Returns the `Pod` builder for method chaining.

## Examples

```rhai
// Request 512MB, limit to 1GB
let pod = namespace.pod("app")
    .image("myapp:latest")
    .memory(512, 1024)
    .apply();

// Request and limit to same value
let db = namespace.pod("database")
    .image("postgres:latest")
    .memory(2048, 2048)
    .apply();
```

## Notes

- This is a chainable method
- Values are in megabytes
- Request is the guaranteed amount
- Limit is the maximum allowed
