Skip to content

quochungndvt/redis-sync-memory-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis-sync-memory-cache

Using redis to synchronizing memory caches

Classic Redis use case with lots of advantages and incredibly fast but as we know local RAM access is still many times faster than network I/O BTW memory caches in decentralized system have some challenges

  1. Data consistency
  2. Data lag between the memory caches and Redis
  3. Don’t blow up the network!

This module implement Techniques for Synchronizing In-Memory Caches with Redis

GitHub Logo\

Documentation


Installation


Install using the "go get" command:

go get github.com/quochungndvt/redis-sync-memory-cache/rsmemory

Examples


try this example

  • server1: go run main.go -port 8081
  • server2: go run main.go -port 8082

Open in browser

Feature


  • Support more Redis type
  • Support cache expire

Releases

No releases published

Packages

 
 
 

Languages