Skip to content

Instantly share code, notes, and snippets.

@Centaur
Created August 24, 2016 04:20
Show Gist options
  • Save Centaur/4288cb91202173419b75619c4d83b894 to your computer and use it in GitHub Desktop.
Save Centaur/4288cb91202173419b75619c4d83b894 to your computer and use it in GitHub Desktop.

Revisions

  1. Centaur created this gist Aug 24, 2016.
    10 changes: 10 additions & 0 deletions fromScalaConsole.scala
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    import com.redis._

    val redis = new RedisClient("localhost", 6379)

    for{set <- redis.smembers("Odersky-Keys")}
    for{opt <- set}
    for{key <- opt}
    redis.del(key)

    redis.del("Odersky-Keys")