Using play-redis AND ehcache?
See original GitHub issueThis isn’t an issue, but a question. Is it possible to use both ehcache and play-redis? I was goofed around with the configuration for a bit, but was never able to make play-redis and ehcache run together. A subset of what I had configured is as follows.
I have a file called redis.conf
:
play.cache.redis {
bind-default = false
# source property; standalone is default
source: standalone
instances {
history-cache {
host: localhost
port: 6379
}
}
}
In application.conf
I’ve enabled the module as follows:
play.modules.enabled += "play.api.cache.redis.RedisCacheModule"
The problem is when I try to inject an instance of CacheAsyncApi
I get an error indicating No implementation for play.api.cache.redis.CacheAsyncApi was bound.
. Presumably this is doe to the bind-default = false
statement? If I remove that I get various other issues related to having to define the play
cache, which is the default as mentioned in the docs.
Is there an example anywhere of running both caches?
Issue Analytics
- State:
- Created 6 years ago
- Comments:22 (11 by maintainers)
Thanks Karel , truly appreciate your contribution towards community !!
Hi @KarelCemus, following the Scala sample was very easy to transport it into Java code, I have the full integration working without any issues at the moment.