Redis Cache


The Redis builder creates managed Redis Cache accounts.

  • Redis (Microsoft.Cache/redis)

Builder Keywords

nameSets the name of the Redis cache instance.
skuSets the sku of the Redis cache instance.
capacitySets the capacity level of the Redis cache instance, should be between 1-6 - see here.
enable_non_ssl_portEnabled access to the cache over the non-SSL port.
settingAllows you to set a Redis-cache specific setting at deployment-time

Configuration Members

KeyGets an ARM expression for the primary key of the Redis cache instance.


open Farmer
open Farmer.Builders.Redis

let myCache = redis {
    name "myredis"
    sku Redis.Standard
    capacity 1
    setting "maxclients" 256
    setting "maxmemory-reserved" 2
    setting "maxfragmentationmemory-reserved" 12
    setting "maxmemory-delta" 2