rp_pool_cache

Description

Sets or displays pool cache setting.

Syntax

rp_pool_cache [pool_name, cache]

Parameters

pool_name

Name of the pool to be displayed or changed.

cache

The number of seconds that connection caches are held in the pool. Setting this to a value of zero (0) disables future connection caching.

Examples

Example 1

Displays the list of all pools and their current cache values.

1> rp_pool_cache
2> go

Returns:

pool_name             cache
--------------------- ---------
POOL_A                0
POOL_B                30
POOL_C                0

Example 2

Displays the current cache value for POOL_A.

1> rp_pool_cache "POOL_A"
2> go

Returns:

pool_name             cache
--------------------- ---------
POOL_A                0

Example 3

Changes the cache of POOL_A to 10 seconds.

1> rp_pool_cache "POOL_A", 102
> go

Returns:

pool_name             cache
--------------------- ---------
POOL_A                10

Example 4

Changes the cache of all pools to 30 seconds.

1> rp_pool_cache NULL, 30
2> go

Returns:

pool_name             cache
--------------------- ---------
POOL_A                30
POOL_B                30
POOL_C                30

Usage


Messages

See also

rp_pool_create, rp_pool_help