Skip to content

mogproject/scala-redis-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stories in Ready Build Status Coverage Status License

scala-redis-mock

Pure scala mock for scala-redis

Versions

Only these versions are tested.

scala-redis-mock scala-redis redis-server
0.1.1 2.15 2.8.19
N/A 3.0 2.8.19

Getting Started

Clone this repository

$ cd your_work_dir
$ git clone git@github.com:mogproject/scala-redis-mock.git
$ cd scala-redis-mock

Try it out (without real Redis)!

$ sbt console

scala> r.set("foo", "bar")
res0: Boolean = true

scala> r.get("foo")
res1: Option[String] = Some(bar)

Testing

  • With mock
sbt test
  • With real redis-server

You need to install Redis in the local host.

redis-server &
USE_REAL_REDIS=yes sbt test

redis-cli shutdown

Supported Operations

  • Connection, Keys, String, Lists, Sets, Sorted Sets, Hashes, HyperLogLog

The following features are not supported.

  • Server, Scripting, Pub/Sub, Transactions, Cluster

About

Pure scala mock for scala-redis

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages