debasishg / scala-redis-nb

Implementation of a non blocking Redis client in Scala using Akka IO
204 stars 38 forks source link

Integration with Scala pickling #36

Open guersam opened 11 years ago

guersam commented 11 years ago

Scala Pickling looks promising and about to release the first stable version.

denen99 commented 10 years ago

FWIW i integrated pickling on my own and it was pretty easy with this library. if you have a

case class SomeClass
val x = SomeClass

you can quite easily use redis.set(somekey, x.pickle.value) into the cache.

Then when retreiving, you simply do

val r = redis.get(somekey)

r.unpickle[SomeClass] match { case s: SomeClass => case _ }