- TIBCO BusinessEvents®
- ActiveSpaces(Deprecated)
- Metaspace
- Space

# Metaspace.Space.setCapacity()

## Signature

`long setCapacity (Object spaceDef, long capacity)`

## Domain

ACTION

## Description

Sets cache capacity for provided space definition

## Parameters

Name | Type | Description
--- | --- | ---
`spaceDef` | `Object` | Space definition
`capacity` | `long` | Desired capacity

## Returns

Type | Description
--- | ---
`long` | Previous space cache capacity

## Cautions

none