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

# Metaspace.Space.setPersistencePolicy()

## Signature

`String setPersistencePolicy (Object spaceDef, String policy)`

## Domain

ACTION

## Description

Sets persistence policy for provided space definition

## Parameters

Name | Type | Description
--- | --- | ---
`spaceDef` | `Object` | Space definition
`policy` | `String` | Desired space persistence policy as NONE, SYNC, or ASYN

## Returns

Type | Description
--- | ---
`String` | Previous space persistence policy

## Cautions

none