Skip to content
/ dmap Public

distributed key-value cache (memcached in Linux Kernel)

Notifications You must be signed in to change notification settings

irqlevel/dmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dmap - distributed key-value memory cache

Client:

go client

Build:

$ make

Install:

$ sudo insmod dmap.ko #load kernel module on each node in cluster

$ echo hostname port | sudo tee /sys/fs/dmap/start_server #start server on each node in cluster

$ echo hostname port | sudo tee /sys/fs/dmap/add_neighbor #add node into cluster

$ cat /sys/fs/dmap/id #query node UID

$ cat /sys/fs/dmap/neighbors #query nodes in cluster

Usage:

$ ./dmap-client hostname:port set key value #add key-value

$ ./dmap-client hostname:port get key #query value by key

$ ./dmap-client hostname:port upd key value #update key value

$ ./dmap-client hostname:port cmpxchg key exchange comparand #compare exchange key value

$ ./dmap-client hostname:port del key #delete key

Uninstall:

$ rmmod dmap #unload dmap on each node in cluster

Releases

No releases published

Packages

No packages published

Languages