Lucee Application.cfc Cache Settings

143 views
Skip to first unread message

Alexander Ambrose

unread,
Jan 5, 2017, 3:56:23 PM1/5/17
to Lucee
Lucee admin notes that you can add cache settings to the Application.cfc after creation of a cache store.  After deleting the original (due to running in Docker after container restart), I'm getting an error that a default cache needs to be assigned when starting my app and cacheGet being called.

Is there a reason something like the following doesn't create a cache and mark it as default if there is no cache created in the GUI?

 
    this.cache.connections.selectorCache = {
      class: 'org.lucee.extension.cache.eh.EHCache'
    , bundleName: 'ehcache.extension'
    , bundleVersion: '2.10.0.17'
    , storage: true
    , custom: {"bootstrapAsynchronously":"true","replicatePuts":"true","automatic_hostName":"","bootstrapType":"on","maxelementsinmemory":"10000","manual_rmiUrls":"","distributed":"off","automatic_multicastGroupAddress":"230.0.0.1","memoryevictionpolicy":"LRU","replicatePutsViaCopy":"true","timeToIdleSeconds":"86400","maximumChunkSizeBytes":"5000000","automatic_multicastGroupPort":"4446","listener_socketTimeoutMillis":"120000","timeToLiveSeconds":"86400","diskpersistent":"true","manual_addional":"","replicateRemovals":"true","replicateUpdatesViaCopy":"true","automatic_addional":"","overflowtodisk":"true","replicateAsynchronously":"true","maxelementsondisk":"10000000","listener_remoteObjectPort":"","asynchronousReplicationIntervalMillis":"1000","listener_hostName":"","replicateUpdates":"true","manual_hostName":"","automatic_timeToLive":"unrestricted","listener_port":""}
    , default: 'object'
    };

Alexander Ambrose

unread,
Jan 9, 2017, 11:44:59 AM1/9/17
to Lucee
Wasn't able to get default to work, but setting the cacheName in all instances of cache operations works.

Paul Klinkenberg

unread,
Jan 10, 2017, 5:02:42 AM1/10/17
to lu...@googlegroups.com
Hi Alexander,

It is a 2-step thing: first define the cache, then set it as default with 
this.cache.object = 'cachename';
this.cache.function = 'cachename';
this.cache.etcetera = 'cachename';

Kind regards,

Paul Klinkenberg

-- 
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/58cf19d8-b796-4ff4-89e5-21f22096e532%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages