Skip to content

SolKuczala/cache_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache example

Implemented with Go routines and Grpc.

Quick start

Once cloned, from root directory use target from Makefile

cd cache_example

make all

Usage

client [arguments]

Commands:

- set             set the key along the value, i.e.: <set> [key] [value]
- get             get the value from the provided key, i.e.: <get> [key]
- cmpAndSet       cmpAndSet provided the key along the old value, set the new value, i.e.:
                  cmpAndSet <key> [oldvalue] [newValue]

Example:

Once run-server and run-client are done

./clienclient set A 1

to set a non existent key with a value

./clienclient get A

to get a value providing an existent key

About

Implementation made with Go routines and Proto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published