playframework / play-plugins

CachePlugin
444 stars 161 forks source link

[redis] Sample code to access sedis pool in scala seems incomplete #160

Open infomofo opened 9 years ago

infomofo commented 9 years ago

I'm having difficulty understanding the scala example for 2.3.x at https://github.com/typesafehub/play-plugins/tree/master/redis#allows-direct-access-to-jedis-and-sedis

It doesn't appear to be scala code entirely and it seems to be referencing some functions or classes not imported in the snippet. Is there a working example of this, or am I misunderstanding the documentation?

The code as it is pasted does not compile for me.

teeterc commented 8 years ago

Seems like an import is missing

import com.typesafe.plugin.use