This file contains hidden or 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
| # REDIS cheatsheet | |
| ### delete | |
| 1. delete all keys in ALL dbs | |
| FLUSHALL | |
| 2. delete all keys in a specific DB |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "time" |
This file contains hidden or 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
| package sample.akka.testkit | |
| import akka.actor.ActorSystem | |
| import akka.actor.Actor | |
| import akka.testkit.{TestKit, TestActorRef} | |
| import org.scalatest.matchers.MustMatchers | |
| import org.scalatest.WordSpec | |
| class ImplicitSenderTest extends TestKit(ActorSystem("testSystem")) | |
| // Using the ImplicitSender trait will automatically set `testActor` as the sender |
NewerOlder