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.
redis-cleanup
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")
@Centaur
Copy link
Author

Centaur commented Aug 24, 2016

dependency: net.debasishg:redisclient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment