ttl-hash-map-server

image

Build

docker-compose up --build

Run Server

docker-compose run --rm l1_memory_cache

make run

Run client

netcat localhost 9099

Commands list

SET <map>

GET <string array> | <string> -> <array> | <map> | <string>

DEL <string array> | <string>

KEYS -> <string array>

Commands examples

  • SET, KEYS

SET {"a": ["a", "b", "c"]}

KEYS

Output:

["a"]


  • GET, DEL

GET "a"

Output:

["a", "b", "c"]


DEL "a" GET "a"

Output:

"null"