For App Developers
For On-Demand plans, Redis has default configurations that App Developers can change using arbitrary parameters. These are listed in the table below:
||Sets the behavior Redis follows when
||“”||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|
||10000||0-20000||Sets the threshhold execution time (seconds). Commands that exceed this execution time are added to the slowlog.|
||128||1-2024||Sets the length (count) of the slowlog queue.|
For Dedicated-VM and Shared-VM plans, Redis is configured with a
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.
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.
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.
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.
You can find sample ruby code that uses PCF in the cf-redis-example-app GitHub repository.
To learn more about Redis itself, visit redis.io.