FerryDocs

Redis and Key Value

An entry of services with the type redis or keyvalue creates a Redis datastore, not a service.

Edit on GitHub
ferry.yaml
services:
  - type: redis              # or keyvalue
    name: cache
    plan: starter            # 256 MiB of memory

  - type: web
    name: hello
    envVars:
      - key: REDIS_URL
        fromService:         # the reference to the datastore
          type: redis
          name: cache
          property: connectionString

type: redis (or keyvalue) creates a with the name of the entry. Render names it a .

What Ferry creates

PartValue
Imageredis:7-alpine
PasswordFerry makes it.
DataAppend-only persistence
maxmemory3/4 of the memory limit

A Redis that is full refuses writes. Thus the does not kill it. See Redis and its memory limit.

The keys that Ferry reads

KeyNotes
typeredis or keyvalue
nameThe name of the datastore
plan, memoryLimit, cpuLimitThe limits. See Resource limits.

Ferry ignores each other key (ipAllowList, maxmemoryPolicy…) with a warning.

Use it from a service

Write fromService with type: redis or keyvalue, as in the example. See Reference properties.

On this page