1) A binding to play.api.cache.AsyncCacheApi was already configured at play.api.cache.redis.GuiceProvider$.defaultBinding$1(RedisCacheModule.scala:73):
Binding(interface play.api.cache.AsyncCacheApi to BindingKeyTarget(interface play.api.cache.AsyncCacheApi qualified with QualifierInstance(@javax.inject.Named(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1).
at play.api.cache.ehcache.EhCacheModule$$anonfun$$lessinit$greater$1.bindDefault$1(EhCacheApi.scala:85):
Binding(interface play.api.cache.AsyncCacheApi to BindingKeyTarget(interface play.api.cache.AsyncCacheApi qualified with QualifierInstance(@play.cache.NamedCache(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1)
2) A binding to play.api.cache.SyncCacheApi was already configured at play.api.cache.redis.GuiceProvider$.defaultBinding$1(RedisCacheModule.scala:73):
Binding(interface play.api.cache.SyncCacheApi to BindingKeyTarget(interface play.api.cache.SyncCacheApi qualified with QualifierInstance(@javax.inject.Named(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1).
at play.api.cache.ehcache.EhCacheModule$$anonfun$$lessinit$greater$1.bindDefault$1(EhCacheApi.scala:85):
Binding(interface play.api.cache.SyncCacheApi to BindingKeyTarget(interface play.api.cache.SyncCacheApi qualified with QualifierInstance(@play.cache.NamedCache(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1)
3) A binding to play.cache.AsyncCacheApi was already configured at play.api.cache.redis.GuiceProvider$.defaultBinding$1(RedisCacheModule.scala:73):
Binding(interface play.cache.AsyncCacheApi to BindingKeyTarget(interface play.cache.AsyncCacheApi qualified with QualifierInstance(@javax.inject.Named(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1).
at play.api.cache.ehcache.EhCacheModule$$anonfun$$lessinit$greater$1.bindDefault$1(EhCacheApi.scala:85):
Binding(interface play.cache.AsyncCacheApi to BindingKeyTarget(interface play.cache.AsyncCacheApi qualified with QualifierInstance(@play.cache.NamedCache(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1)
4) A binding to play.cache.SyncCacheApi was already configured at play.api.cache.redis.GuiceProvider$.defaultBinding$1(RedisCacheModule.scala:73):
Binding(interface play.cache.SyncCacheApi to BindingKeyTarget(interface play.cache.SyncCacheApi qualified with QualifierInstance(@javax.inject.Named(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1).
at play.api.cache.ehcache.EhCacheModule$$anonfun$$lessinit$greater$1.bindDefault$1(EhCacheApi.scala:85):
Binding(interface play.cache.SyncCacheApi to BindingKeyTarget(interface play.cache.SyncCacheApi qualified with QualifierInstance(@play.cache.NamedCache(value=play)))) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1)
4 errors
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:155)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:107)
at com.google.inject.Guice.createInjector(Guice.java:99)
at com.google.inject.Guice.createInjector(Guice.java:84)
at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:185)
at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:137)
at play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21)
at play.core.server.DevServerStart$$anon$1.$anonfun$reload$3(DevServerStart.scala:174)
at play.utils.Threads$.withContextClassLoader(Threads.scala:21)
at play.core.server.DevServerStart$$anon$1.reload(DevServerStart.scala:171)
... 25 common frames omitted
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/63c68ef0-f82a-4ca6-9aa0-132dcf02ad93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/63c68ef0-f82a-4ca6-9aa0-132dcf02ad93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Jeff,,
bind(SyncCacheApi.class).annotatedWith(Names.named("customDefaultSyncCacheApi")).to(CustomSyncCacheApi.class);
public class GtDefaultSyncCacheApi implements SyncCacheApi {
@Inject
public GtDefaultSyncCacheApi(@Named("gtDefaultSyncCacheApi") SyncCacheApi syncCacheApi) {
}
}
play.cache.DefaultSyncCacheApi