Practice Redis by go-redis

Overview

go-redis

go-redisを使用してみた

ファイル構成

.
├── controller
│   └── user_controller.go
├── controller_interface
│   └── user_controller_interface.go
├── repository
│   ├── redis.go
│   └── user_repository.go
├── repository_interface
│   └── user_repository_interface.go
├── models
│   └── user.go
├── command
│   └── testdata.go
├── main.go
├── go.mod
├── go.sum
├── docker-compose.yml
├── Dockerfile
├── MakeFile
└── README.md

動かし方

コンテナをbuild

make build

コンテナを起動

make up

ダミーデータをredisに投入

make testdata

uuidからユーザーを取得

http:localhost:8080/users/[uuid]

コンテナを停止

make down

参考にしたサイト

You might also like...
Golang practice

practice Golang practice Move all files except one cut evrything from current directory and paste into stdinout/ directory mv !(stdinout) stdinout/ an

A toy ray tracer to practice writing go.

pbrt-go A toy ray tracer written to practice writing go. Slowly working towards an implementation based on the excellent 3rd edition of PBRT, because

Learning and Practice - Go Lang

Go Lang - Learning and Practice All the code stored here is provided by Tour of Go Basics Packages, variables, and functions Flow control statements:

This is my first golang project. The main reason for its existence is the need for practice. I will be studying golang while writing this project

My first GoLang project Project Aim The goal of this project is to develop the most simple golang bot to learn how to work with this programming langu

Incomplete CRUD/RBAC service meant to be a practice for Go

Incomplete CRUD / RBAC Service in Go The repository name means nothing. But your task is to complete this repository on your own to be a functional CR

This repository contains my Golang practice

Golang Practice Repository This repository contains my practice code for Golang. Each exercise includes a README for running the application. NOTE: TH

Practice codes developed while practicing Go

Getting started with Go Programming Language - Oreilly Course Practice codes developed while practicing Go. This is my first encounter with Go Program

An open source, online coding platform that offers code practice and tutoring in 50 different programming languages
An open source, online coding platform that offers code practice and tutoring in 50 different programming languages

Exercism Golang En este repositorio voy a subir los ejercicios de la plataforma

Collection of coding examples from "Go In Practice"

Go In Practice Go In Practice 1. Noteworthy aspects of Go 2. A solid foundation 1. Noteworthy aspects of Go Multiple returns Named return values Read

Individual practice & tutorials of GoLang

golang-practice Individual practice & tutorials of GoLang Local Client steps: cd pwd Create a module and outline relevant dependencies as necessary go

Leet code - Practice code of leetcode

leet_code Practice code of leetcode. Setting : "go.gopath": "/Users//go", path:

Go-mongodb - Practice Go with MongoDB because why not

Practice Mongo DB with Go Because why not. Dependencies gin-gonic go mongodb dri

Working through the book "Practice Microservices" in Go

Practical Microservices in Go I'm working through the book Practical Microservices which uses Node as the teaching lanugage. I'm not interested in pra

Practice-dsa-go - Data Structures and Algorithms for Interview Preparation in Go

Data Structures and Algorithms for Interview Preparation in Go Data Structures K

Golang client for redislabs' ReJSON module with support for multilple redis clients (redigo, go-redis)

Go-ReJSON - a golang client for ReJSON (a JSON data type for Redis) Go-ReJSON is a Go client for ReJSON Redis Module. ReJSON is a Redis module that im

Redis client Mock Provide mock test for redis query

Redis client Mock Provide mock test for redis query, Compatible with github.com/go-redis/redis/v8 Install Confirm that you are using redis.Client the

LFU Redis implements LFU Cache algorithm using Redis as data storage

LFU Redis cache library for Golang LFU Redis implements LFU Cache algorithm using Redis as data storage LFU Redis Package gives you control over Cache

GoBigdis is a persistent database that implements the Redis server protocol. Any Redis client can interface with it and start to use it right away.

GoBigdis GoBigdis is a persistent database that implements the Redis server protocol. Any Redis client can interface with it and start to use it right

Redis inventory is a tool to analyse Redis memory usage by key patterns and displaying it hierarchically
Redis inventory is a tool to analyse Redis memory usage by key patterns and displaying it hierarchically

Redis inventory is a tool to analyse Redis memory usage by key patterns and displaying it hierarchically. The name is inspired by "Disk Inventory X" tool doing similar analysis for disk usage.

Owner
Takumi Nakayama
Sophia
Takumi Nakayama
Learning and Practice - Go Lang

Go Lang - Learning and Practice All the code stored here is provided by Tour of Go Basics Packages, variables, and functions Flow control statements:

Carlos López 1 Jan 14, 2022
This is my first golang project. The main reason for its existence is the need for practice. I will be studying golang while writing this project

My first GoLang project Project Aim The goal of this project is to develop the most simple golang bot to learn how to work with this programming langu

F0rzend 6 Jan 7, 2022
Practice codes developed while practicing Go

Getting started with Go Programming Language - Oreilly Course Practice codes developed while practicing Go. This is my first encounter with Go Program

Rahul Maheshwari 0 Oct 3, 2021
An open source, online coding platform that offers code practice and tutoring in 50 different programming languages

Exercism Golang En este repositorio voy a subir los ejercicios de la plataforma

Lucas Frontalini 0 Jan 7, 2022
Collection of coding examples from "Go In Practice"

Go In Practice Go In Practice 1. Noteworthy aspects of Go 2. A solid foundation 1. Noteworthy aspects of Go Multiple returns Named return values Read

Ignacio Herrera 0 Jan 3, 2022
Individual practice & tutorials of GoLang

golang-practice Individual practice & tutorials of GoLang Local Client steps: cd pwd Create a module and outline relevant dependencies as necessary go

Marc 0 Jan 6, 2022
Practice Redis by go-redis

Practice Redis by go-redis

Takumi Nakayama 0 Feb 10, 2022
Redis-shake is a tool for synchronizing data between two redis databases. Redis-shake是一个用于在两个redis之间同步数据的工具,满足用户非常灵活的同步、迁移需求。

RedisShake is mainly used to synchronize data from one redis to another. Thanks to the Douyu's WSD team for the support. 中文文档 English tutorial 中文使用文档

Alibaba 2.6k Sep 20, 2022
Litmus helps Kubernetes SREs and developers practice chaos engineering in a Kubernetes native way.

Litmus Cloud-Native Chaos Engineering Read this in other languages. ???? ???? ???? ???? Overview Litmus is a toolset to do cloud-native chaos engineer

Litmus Chaos 3.3k Sep 25, 2022
Docker App Development & Command Practice

Docker App Development & Command Practice What is Docker? A platform for building,running and shipping applications. in a consistent manner so if your

MD MOSTAIN BILLAH 32 Apr 7, 2022