> On Feb 15, 2016, at 10:19 AM, Adam Fraser <[email protected]> wrote:
> 
> There isn't currently a config setting for the minimum retained - only the 
> maximum can be configured.  That sounds like a reasonable enhancement, 
> although it would have to be used only when appropriate - a lower cache size 
> will normally result in an increased number of relatively expensive view 
> calls to return any channel data not stored in the cache.

Actually it looks like these are already settable — I traced those values from 
db/channel_cache.go (where they’re used) up to DbConfig.CacheConfig (in 
rest/config.go).

It looks like you can edit the JSON config file to add a `cache` property to a 
database config object, whose value is an object that can contain keys like 
`channel_cache_min_length` and `channel_cache_max_length`.

(Or I might be misreading the code … it’s been at least a year since I looked 
at this.)

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/64C9D7E4-BAA5-49F1-8C5E-52F26C1AF231%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to