Introduction for App Developers
Note: This version of Redis for PCF is no longer supported because it has reached the End of General Support phase. To stay up to date with the latest software and security updates, upgrade to a supported version.
Page last updated:
This section introduces Redis for Pivotal Cloud Foundry (PCF) services for developers and links to more information.
For instructions on creating, binding to, and deleting an instance of the On-Demand, Dedicated-VM, or Shared-VM plan, see Using Redis for PCF.
Redis for PCF v1.8+ offers On-Demand, Dedicated-VM, and Shared-VM services.
On-Demand Service—Provides a dedicated VM running a Redis instance. The operator can configure up to three plans with different configurations, memory sizes, and quotas. App developers can provision an instance for any of the On-Demand plans offered and configure certain Redis settings.
Dedicated-VM Service—Provides a dedicated VM running a Redis instance. The Dedicated-VM Service is pre-provisioned by the operator with a fixed number of VMs and memory size. App developers can then use one of those pre-provisioned VMs.
Shared-VM Service—Provides support for a number of Redis instances running in a single VM. It is designed for testing and development purposes only, do not use the Shared-VM service in production environments. The Shared-VM instances are pre-provisioned by the operator with a fixed number of instances and memory size. App developers can then use one of these pre-provisioned instances.
Note: As of Redis for PCF v1.11, the on-demand service is at feature parity with the dedicated-VM service. Dedicated-VMs are marked as deprecated in v1.14 and will be removed in v2.0. Pivotal recommends that you migrate to the on-demand service plan.
Spring Cloud Spring Service Connectors connect to Redis for PCF. See the Redis section in the Spring Cloud Spring Service Connector documentation.
Spring Cloud Cloud Foundry connectors automatically connect to Redis for PCF. See the Redis section in the Spring Cloud Cloud Foundry Connector documentation.
To view an example Spring app using Redis as a cache with failover, see the Redis Reference Architectures repository.
Steeltoe Cloud Connectors can connect to Redis for PCF. See the Steeltoe Cloud Connectors documentation.
To view examples of Steeltoe apps using Redis as a cache with failover, see the Example Steeltoe App repository in GitHub.
Warning: The Steeltoe connector for Redis requires Redis for PCF to support Lua scripting. Check whether the language you are using requires Lua scripting. If it does, contact your operator. By default, Lua scripting is disabled for Redis for PCF, but a PCF operator can change the setting to enable it by selecting the Lua Scripting checkbox in each service plan’s On-Demand Plan configuration pane.
PCF Dev is a small footprint version of PCF that’s small enough to run on a local developer machine. For more information, see https://pivotal.io/pcf-dev.
Sample ruby code that uses PCF can be found here https://github.com/pivotal-cf/cf-redis-example-app.
To learn more about Redis itself, see redis.io.