Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.01 KB

File metadata and controls

29 lines (24 loc) · 1.01 KB

somecache

high performance and scalable memory cache system

#master it is a lib that manage you cluster
it a lib that reuse connection reuse connection make master looks like gateway it is a monitor your slaves and decide which slave you will use it also a localcache that store data in local machine`s memory

#slave it is a node save you data in memory slave is a standalone program

#use case go get github.com/756445638/somecache cd ${GOPATH}/src/github.com/756445638/somecache go run examples/pub.go -log-file d://tmp.log go run slave.go -cachesize 500 -worker=3 //worker is like a donwload thread go run slave.go -cachesize 500 -worker 2 -master-tcp-address 192.168.1.8:4000 support cmds are: get remote aaa get aaa put remote aaa bbb put aaa bbb put&get with "remote" will work wite slave,it is a debug option,in production should look localcache first

somecache is written in pure golang,somecache is not stable currently,welcome to test,debug,pull, fork,and advise!! approiate anything