Created
January 17, 2018 21:38
-
-
Save stevewithington/b37b14e7b0d96f4fe692179857167396 to your computer and use it in GitHub Desktop.
Mura: Example external session cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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