Skip to content

Instantly share code, notes, and snippets.

@bdw429s
Created October 27, 2016 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdw429s/cba4b7a3f260590eecbebf558c979fce to your computer and use it in GitHub Desktop.
Save bdw429s/cba4b7a3f260590eecbebf558c979fce to your computer and use it in GitHub Desktop.
Lucee Server defining data sources and caches from Applicatipn.cfc
this.cache[ 'couchbase' ] = {
class = 'ortus.extension.cache.couchbase.CouchbaseCache',
storage=true,
custom={
bucketName='default'
}
};
this.cache[ 'couchbasecache' ] = this.cache[ 'couchbase' ];
this.cache[ 'templatecache' ] = this.cache[ 'couchbase' ];
this.cache.object = 'couchbase';
this.cache.template = 'templatecache';
this.cache[ 'noncouchbasecache' ] = {
class = 'lucee.runtime.cache.ram.RamCache',
storage=false,
custom={
}
};
this.datasources[ 'test' ] = {
class: 'org.h2.Driver',
bundleName: 'org.h2',
bundleVersion: '1.3.172',
connectionString: 'jdbc:h2:#expandPath( '/tests/db/test' )#;MODE=MySQL'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment