# Copyright (C) Lightbend Inc. <https://www.lightbend.com>

play {

  modules {
    enabled += "play.api.cache.caffeine.CaffeineCacheModule"
  }

  cache {
    # Data that should be used to configure the cache
    caffeine {
      defaults {
        initial-capacity = null
        weak-keys = null
        weak-keys = false
        soft-values = false
        record-stats = false
      }
      caches {}
    }
    # The caches to bind
    bindCaches = []
    # The name of the default cache to use in caffeine
    defaultCache = "play"
    # The dispatcher used for get, set, remove,...  operations on the cache. By default Play's default dispatcher is used.
    dispatcher = null
  }
}
