Created
August 24, 2016 04:20
-
-
Save Centaur/4288cb91202173419b75619c4d83b894 to your computer and use it in GitHub Desktop.
redis-cleanup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dependency: net.debasishg:redisclient