Redis for PCF v1.8

For App Developers

Redis Configuration

For On-Demand plans, Redis has default configurations that App Developers can change using arbitrary parameters. These are listed in the table below:

Property Default Options Description
maxmemory-policy allkeys-lru allkeys-lru, noeviction, volatile-lru, allkeys-random, volatile-ttl Sets the behavior Redis follows when `maxmemory` is reached
notify-keyspace-events “” Set a combination of the following characters (e.g., “Elg”): K, E, g, $, l, s, h, z, x, e, A Sets the keyspace notifications for events that affect the Redis data set
slowlog-log-slower-than 10000 0-20000 Sets the threshhold execution time (seconds). Commands that exceed this execution time are added to the slowlog.
slowlog-max-len 128 1-2024 Sets the length (count) of the slowlog queue.

For Dedicated-VM and Shared-VM plans, Redis is configured with a maxmemory-policy of no-eviction. This policy means that the once memory is full, the service will not evict any keys and no write operations will be possible until memory becomes available. Persistence is configured for both RDB and AOF. The default maximum number of connections, maxclients, is set at 10000 but this number is adjusted by Redis according to the number of file handles available. Replication and event notification are not configured.

Service Plans

PCF Redis offers On-Demand, Dedicated-VM and Shared-VM plans. The memory allocated to the plans is determined by the operator at deploy time. For more information on the plans see the architecture and recommended usage pages.

Using Redis for PCF

Instructions for creating, binding to, and deleting an instance of the On-Demand, Dedicated-VM or Shared-VM plan are here.

Getting Started

Using PCF Redis with Spring

Spring Cloud Connectors can connect to PCF Redis. Spring Cloud Cloud Foundry connectors will automatically connect to PCF Redis.


PCF Dev is a small footprint version of PCF that’s small enough to run on a local developer machine. More info here

Redis Example App

Sample ruby code that uses PCF can be found here


To learn more about Redis itself, visit

Create a pull request or raise an issue on the source for this page in GitHub