Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/tmpaul/golang-redis-mock

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/tmpaul/golang-redis-mock

  • v0.0.0-20200204132113-c95b852f4131
  • Source
  • Go
  • Socket score

Version published
Created
Source
Go report card Redis logo

golang-redis-mock

A minimal functional Redis server written in Golang. I built this to learn Golang while simultaneouly building out a functional product that begs good code practices, moderate use of concurrent goroutines and dynamic type management.

Running locally

Make sure that you have Go installed, and that it supports go modules.

go run server.go

This will open up a mock of redis-cli, and you can execute simple basic commands.

Listening on localhost:6382
redis-cli> GET k
(nil)
redis-cli> SET k 2
OK
redis-cli> GET k
2
redis-cli> GETSET foo bar
bar
redis-cli> 

Allowed commands are GET, SET, DEL, GETSET, APPEND, SETNX, STRLEN, SETEX.

Running tests

cd resp && go test

FAQs

Package last updated on 04 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc