LATEST VERSION: 1.9 - CHANGELOG
Redis for PCF v1.9

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 about the plans, see the architecture and recommended usage pages.

Using Redis for PCF

See the Using Redis for PCF topic for instructions about creating, binding to, and deleting an instance of the On-Demand, Dedicated-VM, or Shared-VM plan.

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

PCF Dev is a small footprint version of PCF designed to be small enough to run on a local developer machine. See the PCF Dev documentation for more information.

Redis Example App

You can find sample ruby code that uses PCF in the cf-redis-example-app GitHub repository.

Redis

To learn more about Redis itself, visit redis.io.

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