Back to problems

Pseudo-Memcached Protocol Server

Algorithm · Reddit · Medium

Requirements Create a server that provides a small in-memory key-value store with memcached-style behavior. Clients communicate through TCP using ASCII, case-sensitive commands, with each command line ending in \n. A valid key consists only of characters matched by [A-Za-z0-9_-], while stored values may contain any bytes. You may use any component from the standard library. Implement these commands: get key_name — retrieve the value associated with a key. For a present key,…

Checking your access…