Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Update readme.md on how to setup play 2.4.2 #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,13 @@ play = 2.3.x:
```

play = 2.4.x:
```"com.typesafe.play.modules" %% "play-modules-redis" % "2.4.0"``` to your dependencies
```"com.typesafe.play.modules" %% "play-modules-redis" % "2.4.1"``` to your dependencies (e.g. build.sbt)
and you'll probably need to add this resolver too to resolve Sedis (see [issue](https://github.com/typesafehub/play-plugins/issues/141)):
```resolvers += "google-sedis-fix" at "http://pk11-scratch.googlecode.com/svn/trunk"```

* Most likely you will want to manage your dependency using guice so that you can inject JedisPool to classes other than the Play controllers e.g. your data access objects. To enable guice add the following to your dependencies:
```"com.google.inject.extensions" % "guice-servlet" % "4.0"```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guice-servlet shouldn't be needed - Play depends on Guice out of the box, you shouldn't need an explicit dependency on it, and you definitely shouldn't need to bring in the servlet API.


* The default cache module (EhCache) will be used for all non-named cache UNLESS this module (RedisModule) is the only cache module that was loaded. If this module is the only cache module being loaded, it will work as expected on named and non-named cache. To disable the default cache module so that this Redis Module can be the default cache you must put this in your configuration:

```
Expand Down