Skip to content

Instantly share code, notes, and snippets.

@mattlevine
Forked from stevewithington/cfapplication.cfm
Created April 27, 2018 19:06
Show Gist options
  • Save mattlevine/d0c429b9a1e3075478b24184a1fea8a1 to your computer and use it in GitHub Desktop.
Save mattlevine/d0c429b9a1e3075478b24184a1fea8a1 to your computer and use it in GitHub Desktop.
Mura: Example external session cache
<cfscript>
this.cache.connections["sessions"] = {
class: 'org.lucee.extension.io.cache.memcache.MemCacheRaw'
, bundleName: 'memcached.extension'
, bundleVersion: '3.0.2.29'
, storage: true
, custom: {
"socket_timeout":"30",
"initial_connections":"1",
"alive_check":"true",
"buffer_size":"1",
"max_spare_connections":"32",
"storage_format":"Binary",
"socket_connect_to":"3",
"min_spare_connections":"1",
"maint_thread_sleep":"5",
"failback":"true",
"max_idle_time":"600",
"max_busy_time":"30",
"nagle_alg":"true",
"failover":"true",
"servers": "memcached:11211"
}
, default: ''
};
this.sessionCluster = true;
this.sessionStorage = "sessions";
</cfsript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment