ec_cluster_cache_get
Last updated March 2020
Name
ec_cluster_cache_get — Retrieve a value from a cluster-wide replicated cache
Synopsis
ec_cluster_cache_get
{ replication_name
} { key
}
Description
ec_cluster_cache_get
retrieves the value for the given key and cache name.
Note
This feature requires the cluster module. The cluster configuration stanza must include a replicate
directive that names this cache. See “Replicated Caches”.
$value = ec_cluster_cache_get "mycache" "mykey";
ec_log "mykey: ${value}";
Was this page helpful?