debasishg / scala-redis

A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.
1.02k stars 219 forks source link

Is it possible to use this as the default cache for PlayFramework 2.1? #67

Open victorisunc opened 11 years ago

victorisunc commented 11 years ago

Play 2.1 uses Ehcache by default. It seems that scala-redis acts as a standalone module and doesn't implement Play's default CacheAPI interface. Any idea how it might be done to use it seamlessly with Play?

ducky-hong commented 11 years ago

It seems possible. I simply implemented Play's CacheAPI by wrapping this scala-redis with a serialization method. The repo is here.

Uxio0 commented 8 years ago

You have this official plugin for play framework 2.5:

https://github.com/playframework/play-plugins/tree/master/redis