anchor.diff:                        "conflict_resolution_type=~s;"
                         "bucket_type=~s;~s",
                         [proplists:get_value(
  -                         ht_size, BucketConfig,
  -                         misc:getenv_int("MEMBASE_HT_SIZE", 3079)),
  -                       proplists:get_value(
                            ht_locks, BucketConfig,
                            misc:getenv_int("MEMBASE_HT_LOCKS", 47)),
                          MemQuota,
  
positive.code:                 %% MemQuota is our per-node bucket memory limit
                  CFG =
                      io_lib:format(
                        "ht_size=~B;ht_locks=~B;"
                        "max_size=~B;"
                        "dbname=~s;"
                        "backend=couchdb;couch_bucket=~s;max_vbuckets=~B;"
  
negative.code:                        eviction_policy_cfg_string(BucketConfig, ItemEvictionPolicy,
                                                    EphemeralFullPolicy)]),
                  CFG1 = metadata_purge_age_cfg_string(EphemeralPurgeAge) ++ CFG,
                  CFG2 = ht_size_cfg_string(BucketConfig) ++ CFG1,
                  {CFG2, {MemQuota, DBSubDir, NumThreads, ItemEvictionPolicy, EphemeralFullPolicy,
                         DriftThresholds, EphemeralPurgeAge}, DBSubDir};
              memcached ->
                  {io_lib:format("cache_size=~B;uuid=~s", [MemQuota, BucketUUID]),
  