Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 733 Bytes

README.md

File metadata and controls

35 lines (20 loc) · 733 Bytes

memcached-lite

The main task is to implement a server, that stores and retrieves data for different clients. For each key, there is a unique value that the server stores, using the set <key> <value> command, and retrieves it using a get <key> command.

Client Commands:

  1. SET

    Bytes represent length of value
    
    set <key> <bytes>\r\n <value>\r\n
    
    Responses:
    
    STORED\r\n  - If successfully stored 
    NOT-STORED\r\n - If an error occurs while storing data
    ERROR\r\n - error
    
  2. GET

    Bytes represent length of value
    
    get <key>\r\n
    
    Responses:
    
    VALUE key1 zzzzz END
    
    NOT-FOUND\r\n - If key is not found