Skip to content

Instantly share code, notes, and snippets.

@boseabhishek
boseabhishek / redis_cheatsheet
Last active October 28, 2019 14:16
REDIS Cheatsheet
# REDIS cheatsheet
### delete
1. delete all keys in ALL dbs
FLUSHALL
2. delete all keys in a specific DB
@boseabhishek
boseabhishek / main.go
Last active July 25, 2019 16:46
Async parallel calls to invoke two APIs using anonymous goroutine functions and channels to pipe the response
package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"time"
@boseabhishek
boseabhishek / ImplicitSenderTest.scala
Created February 1, 2017 12:00 — forked from mguillermin/ImplicitSenderTest.scala
Sample showing basic usage of Akka TestKit and TestActorRef
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