Skip to main content


ec_cluster_cache_set — Set a value in a cluster-wide replicated cache


ec_cluster_cache_set { replication_name } { key } { value } { ttl }


ec_cluster_cache_set sets the value for the given key and cache name. The ttl is a string specifying the number of seconds until the value expires (unless it ends with "H" or "M" for hours or minutes). The value will not expire if the ttl is "0".


This feature requires the cluster module. The cluster configuration stanza must include a replicate directive that names this cache. See “Replicated Caches”.

ec_cluster_cache_set "mycache" "mykey" "myvalue" "0";

Was this page helpful?