Redis Cache

Overview

The Redis builder creates managed Redis Cache accounts.

  • Redis (Microsoft.Cache/redis)

Builder Keywords

KeywordPurpose
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, which 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

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

Example

open Farmer
open Farmer.Builders.Redis

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