Skip to content
A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.
Find file
Latest commit 7824252 May 31, 2011 @acrosa Merge pull request #11 from kevinpet/master
Return the monitor stream from monitor
Failed to load latest commit information.
project sbt 0.7.4, scala 2.8.1, version 1.0.3 Jan 29, 2011
.gitignore Modified .gitignore Aug 19, 2009
LICENSE Added MIT license Dec 7, 2009

Redis Scala client

Key features of the library

  • Native Scala types Set and List responses.
  • Consisten Hashing on the client.
  • Support for Clustering of Redis nodes.

Information about redis

Redis is a key-value database. It is similar to memcached but the dataset is not volatile, and values can be strings, exactly like in memcached, but also lists and sets with atomic operations to push/pop elements.

Key features of Redis

  • Fast in-memory store with asynchronous save to disk.
  • Key value get, set, delete, etc.
  • Atomic operations on sets and lists, union, intersection, trim, etc.



Start your redis instance (usually redis-server will do it)

$ cd scala-redis
$ sbt
> update
> test (optional to run the tests)
> console

And you are ready to start issuing commands to the server(s)

let's connect and get a key:

scala> import com.redis._
scala> val r = new Redis("localhost", 6379)
scala> r.set("key", "some value")
scala> r.get("key")

Alejandro Crosa <>

Something went wrong with that request. Please try again.