Skip to content

A replicated memory cache allows quick access to data using multiple servers. Data gets saved in memory as a key/value pair to any of the cache servers, and then the data is replicated to other connected servers. This process enables servers in any location to serve and speed up requests to different geographic regions.

License

Notifications You must be signed in to change notification settings

nakshatra-nahar/Replicate-memory-cache-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Replicate-memory-cache-master

A replicated memory cache allows quick access to data using multiple servers. Data gets saved in memory as a key/value pair to any of the cache servers, and then the data is replicated to other connected servers. This process enables servers in any location to serve and speed up requests to different geographic regions.

commands to run

  1. Set up your Go environment: Make sure you have Go installed by running:

go version If not installed, download and install it from the official Go website.

Initialize your Go module in the project directory:

go mod init your_project_name

  1. Get dependencies (if any): If your project has any dependencies (you'll likely need libraries for gRPC or HTTP handling), you should install them by running: bash

go get

3 . Build the project: Navigate to the project directory where your main Go file (main.go) is located. Build the project using the Go build command:

go build

  1. To run the project, execute the following command:

go run main.go

curl http://localhost:8080/data

About

A replicated memory cache allows quick access to data using multiple servers. Data gets saved in memory as a key/value pair to any of the cache servers, and then the data is replicated to other connected servers. This process enables servers in any location to serve and speed up requests to different geographic regions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages