MySQL to Redis caching made easy

Related tags

mysql go redis golang sql
Overview

redisql

GoDoc

MySQL to Redis caching made easy

Example Usage

CLI

Installation:

go install github.com/DGKSK8LIFE/redisql/redisql

Configuration:

Create a YAML file with the following structure:

sqluser: 
sqlpassword: 
sqldatabase:
sqltable:
redisaddr:
redispass:
log:

Usage:

redisql copy -config=pathtofile.yml 

Library

Installation:

go get github.com/DGKSK8LIFE/redisql

Usage:

package main

import (
    "github.com/DGKSK8LIFE/redisql"
)

func main() {
	config := redisql.Config{
		SQLUser:     "josh",
		SQLPassword: "joshmark52",
		SQLDatabase: "celebrities",
		SQLTable:    "celebrity",
		RedisAddr:   "localhost:6379",
		RedisPass:   "joshmark52",
		Log:         true,
	}
	err := config.Copy()
	if err != nil {
		panic(err)
	}
}

Current Functionality and Limitations

  • Simple copying of entire MySQL tables to Redis via CLI and Go Module
  • Improved logs (optional CLI output, improved formatting)
  • Support for multiple Redis data types (lists, sets, etc)
  • Support for other SQL servers
Issues
Releases(v0.2)
Owner
Tarek Ali
Open source developer, student, freelancer.
Tarek Ali
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

Mohamed Shapan 6 Apr 23, 2021
MySQL to Redis caching made easy

redisql MySQL to Redis caching made easy

Tarek Ali 10 Jul 18, 2021
cyhone 19 Jul 14, 2021
An embedded key/value database for Go.

bbolt bbolt is a fork of Ben Johnson's Bolt key/value store. The purpose of this fork is to provide the Go community with an active maintenance and de

etcd-io 4.6k Jul 21, 2021
go-pmem is a project that adds native persistent memory support to Go.

Introduction go-pmem is a project that adds native persistent memory support to Go. This is achieved through a combination of language extensions, com

Jerrin Shaji George 61 Jun 26, 2021
mogutouERP 是一个前后端分离的微型进存销系统,采用 Gin + Vue 开发

mogutouERP 蘑菇头进存销管理系统 mogutouERP 是一个前后端分离的微型进存销系统,采用 Gin + Vue 开发。

徐旭 148 Jul 14, 2021
fastcache - fast thread-safe inmemory cache for big number of entries in Go

Fast thread-safe inmemory cache for big number of entries in Go. Minimizes GC overhead

VictoriaMetrics 1.2k Jul 26, 2021
A memcached proxy that manages data chunking and L1 / L2 caches

Rend: Memcached-Compatible Server and Proxy Rend is a proxy whose primary use case is to sit on the same server as both a memcached process and an SSD

Netflix, Inc. 1.1k Jul 19, 2021
Concurrency-safe Go caching library with expiration capabilities and access counters

cache2go Concurrency-safe golang caching library with expiration capabilities. Installation Make sure you have a working Go environment (Go 1.2 or hig

Christian Muehlhaeuser 1.6k Jul 26, 2021
groupcache is a caching and cache-filling library, intended as a replacement for memcached in many cases.

groupcache Summary groupcache is a distributed caching and cache-filling library, intended as a replacement for a pool of memcached nodes in many case

Go 10.5k Jul 21, 2021
Efficient cache for gigabytes of data written in Go.

BigCache Fast, concurrent, evicting in-memory cache written to keep big number of entries without impact on performance. BigCache keeps entries on hea

Allegro Tech 5k Jul 21, 2021
go 两级缓存方案,支持分布式

g2cache 介绍 分布式多级缓存方案g2cache 软件架构 软件架构说明 主要内容: 模块 功能 特点 注意 local interface 本机内存高速缓存 纳秒,毫秒级别响应速度;有效期较短 实现LocalCache接口,注意控制内存 out interface 外部高速缓存

null 9 Jul 23, 2021