Skip to content

golangle/remote-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

给syncMap加上socket的翅膀 - remoteCache

通过 Socket 建立连接,解析每一行数据,根据解析的结果操作 Map 的数据。

通过 remoteCache 可以将多台主机的内存建立起连接

  • 可以使用星型模式,单服务端多客户端形式。
  • 也可以使用多级链式结构,构成多级的缓存链。根据不同数据的类型进行分层管理。

典型的应用

通过本地缓存作为第一级缓存,然后将remoteCache作为二级缓存,或者根据需要将多主机共享的数据进行分布式的缓存。

About

A sync.Map with socket wings,then operates data from/to other hosts,like redis,but simplest.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages